I'm trying to send myself a custom notification and it just doesn't go. Most
of this code is from the docs. It compiles fine, and I've tried sticking a
whole lot of error checking in and everything appears to be working ok.
I can register for and receive the standard notifications, but I never see
anything from this code.
error = DmGetNextDatabaseByTypeCreator(true, &searchState,
sysFileTApplication, appFileCreator, true,
&appCard, &appID);
if (errNone != error) return
/* Create the notification block. */
notifyParam.notifyType = customNotifyType;
notifyParam.broadcaster = appFileCreator;
notifyParam.notifyDetailsP= NULL;
notifyParam.handled = false;
/* Register for my notification */
SysNotifyRegister(appCard, appID, customNotifyType,
NULL, sysNotifyNormalPriority, NULL);
/* Broadcast the notification */
error = SysNotifyBroadcastDeferred(¬ifyParam, NULL);
(I'm using getnextdatabasebytypecreator instead of SysCurAppDatabase because
my app has no ui, and I'm not sure I'm registering at a time when my app is
the current one)
I'm totally new to this environment. Are there any common gotchas with
custom notifications?
-e
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/