NSDistributedNotification and [ notification object ]
NSDistributedNotification and [ notification object ]
- Subject: NSDistributedNotification and [ notification object ]
- From: "Sven A. Schmidt" <email@hidden>
- Date: Thu, 3 Jan 2002 14:11:34 +0100
I'm using NSDistributedNotifications and found that there are problems
with the NSNotification object at the receiving end:
[ notification object ] always returns nil, while [ notification name ]
returns the expected notification string. [ notification userInfo ] also
works, so it's actually easy to work around this problem.
The object I send is an NSString (as required) and it's properly
retained (I actually "overretained" it, too) on the sending end.
Everything's identical to the userinfo part which works.
Has anyone else seen this?
Sven