Re: Questions about NSDistributedNotificationCenter
Re: Questions about NSDistributedNotificationCenter
- Subject: Re: Questions about NSDistributedNotificationCenter
- From: Andreas Monitzer <email@hidden>
- Date: Mon, 30 Jul 2001 03:50:33 +0200
On Monday, July 30, 2001, at 02:50 , Lloyd Sargent wrote:
One more question, how does one deal with the very REAL possibility of
"notification pollution"? Is there a normal method to generate unique
strings?
Yes, prepend the application's name (like NS* in the Cocoa API)
On Sunday, July 29, 2001, at 07:45 PM, Lloyd Sargent wrote:
Got a couple of quick questions about NSDistributedNotificationCenter:
1. Is this the "normal" method of passing simple "messages" between
threads?
No.
2. Are the notifications machine local? i.e. Is there no ability to have
other machines listen for notifications? That is what I *think* I
understand from the documentation.
Use NSConnection for talking between computers.
3. Any caveats that I should know before I start entrenching my code
with this object?
Try to send NSStrings, NSDictionaries and NSArrays only.
andy
--
Discussion forthcoming.