Maybe all notification-"hacks" should allow the user to set the priority
(low, normal, high?), so that they can control the order.  Setting your
notification to the highest priority doesn't seem very friendly to other
"hacks"-like handlers, especially if you eat some events.

I wonder if 3 user visible priority levels is the right amount... ?

Ron Nicholson
HotPaw
  <http://www.hotpaw.com/rhn/hotpaw >

----- Original Message -----
One Fri Nov 1, 2002  1:28 pm, Scott Gruby <[EMAIL PROTECTED]> writes:
In article <[EMAIL PROTECTED]>, Danny Wong <[EMAIL PROTECTED]>
wrote:

 >Based on some of the hacks I've seen, I'm much happier with
 >notifications as there are no patch chains to worry about and the
 >notifications can be installed/removed w/o creating a big mess for other
 >patches.

 But you can't guaranteed that your app will receive the notification.
 Another app could chew the notification. So if you have more than one app
 Registered the same notification how does the OS know which one have the
 Higher priority assumming that the priorities are set the same?

 Regards,
...
Excellent point. The stuff I've written, I've registered as the highest
priority (yeah, I really shouldn't, but I need to get called)...my guess
is the one that got registered first gets the event. I just checked the
sources for the notification manager (4.0) and it looks like the entries
are inserted into the list sorted using type and priority.

I guess that maybe PalmSource should consider a "patch" mechanism for a
future Palm OS version that handles things like this better. A user
interface to see/control which item(s) has priority might be nice.

--
Scott Gruby
[EMAIL PROTECTED]
<http://www.gruby.com/>

--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to