Re: NSDistributedNotification and Developer Cooperation.. arequest for discussion
Re: NSDistributedNotification and Developer Cooperation.. arequest for discussion
- Subject: Re: NSDistributedNotification and Developer Cooperation.. arequest for discussion
- From: Charles Bennett <email@hidden>
- Date: Wed, 10 Oct 2001 20:09:43 -0400
"John C. Randolph" wrote:
>
>
On Wednesday, October 10, 2001, at 02:48 PM, Charles Bennett wrote:
>
>
>
> This could give rise to all kinds of cool inter-application
>
> communications and
>
> "fun"
>
>
>
> Comments?
>
>
This is something I'd never even thought about. I knew that
>
NSDistributedNotificationCenter existed, but I never even read the class
>
description. Now that you bring it up, I can see all kinds of uses for
>
this.
Me too. Applications to follow :-)
10.1 fixed a few problems with DistributedNotifications and system startup
so you haven't missed much.
>
>
I wonder: what happens to performance if a notification is *really*
>
big? (E.g, what if the string I post is 20 megs or so?) Also, just how
>
fast can such notifications be sent? (Every half-second? Every 15
>
milliseconds? I'm sure it would be fast enough for a "real-time" stock
>
ticker, but probably not fast enough for an oscilliscope display of an
>
audio waveform.)
Good question, I imagine that performance simply tanks :-) PowerGuardian
move about 1300 bytes worst case, and I don't see any problems.
>
I need to ponder how this functionality overlaps with distributed
>
objects and application services.
I like the fact that you don't have to connect, but simply register
to receive.
>
It might be nice if apps normally posted "I just launched", "I'm opening
>
a file at this path" and "I'm about to quit" messages so that any other
>
apps that care can take appropriate action. Perhaps we can persuade Ali
>
and his team to make this an optional behaviour of NSApplication and
>
NSDocumentManager?
>
>
What kinds of messages will PowerGuardian be posting? Power lost, power
>
restored, periodic battery levels?
PowerGuardian's "simple" notifications are
daemon shutdown
daemon start
ups at notification point
ups at shutdown point
power restore
power fail
heartbeat
and include a simple desctiptive string (localized :-) )
the "big" notification includes a dictionary with everything that's going on at the moment.
I'll be posting some example code when I release the 2nd beta (tomarrow I hope)
I'd love to get feedback about what sort of additional notifications would be nice.
I don't do battery level, but I think I'll add that with a Charging/Discharging
flag before I release the beta.
chuck
BTW: I have added a few more UPS's including the APC Back-UPS USB (the nice clear one)
to the supported list.
The only issue with any of the USB based UPS's involves HID driver problem that prevent
the UPS from being turned off before the low battery point. (Bug Report filed..)
I've always been an APC fan, but the Belkin serial UPS's are really nice, and have survived
me beating the crap out of them. (there's only one way to be sure you can detect overloads ;-) )
chuck
>
-jcr
>
>
"I fear all we have done is to awaken a sleeping giant and fill him with
>
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev