If you weren't so lazy, you might have found this: http://www.palmos.com/dev/support/docs/recipes/notifications.html.
You can probably do this in one of two ways: 1. Write a separate application that registers and handles the notification, and then performs the operation of your hack, which as I understand it, sub-launches another application. This seems easier from a coding standpoint because you simply have to deal with launch codes and you can leave the application you're going to sub-launch unchanged, since it's already being sub-launched from a hack and it wouldn't know/care that it's now being sub-launched from a notification handler. -or- 2. Simply have the application that you're going to sub-launch register and *be* the notification handler itself. This will be a bit more coding work because you will have to arrange and lock down the code segment that will handle the notification, and once you receive it, you will have to set up as if you were sub-launched (i.e., globals--I think CW 8.2 has a way of doing this--and maybe a new stack). This is a bit tidier, though, since you app will be completely self-contained in one PRC. Joe "Jose" <[EMAIL PROTECTED]> wrote in message news:90557@palm-dev-forum... > > I'm trying to turn a hack into a 5.0 notification handler, > with as little work as possible since I'm as lazy as a donkey. > From the looks of notifications handlers, at least from what > would be required of mine, it seems awfully close to my hack: > > - register for interest in sysNotifyProcessPenStrokeEvent > - lock the code segment that's the notification handler > - play by some of the same rules as hacks wrt global data > - possibly support preferences > > I'm hoping to reuse a lot of my hack code, but > I'm unfamiliar with what other code is necessary (load a code > resource, locking it, how to initially register for the notification > and let the user know that it's enabled, etc, i.e., > the stuff the system extension manager, X-Master, took care of). > Does anyone have a template for a simple notification handler, > or does anyone have a way of possibly turning an ugly hack > into a more beautiful notification handler? > Seems like a system extension manager (X-Master, HackMaster) > could possibly even become a notification manager for a set of hacks. > > Thanks, Joe > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
