Re: NSNotification
Re: NSNotification
- Subject: Re: NSNotification
- From: "Finlay Dobbie" <email@hidden>
- Date: Wed, 6 Jun 2007 12:30:37 +0100
As an addendum to this, note that only plist types may be used in the
userInfo of a distributed notification.
On 06/06/07, Jerry Krinock <email@hidden> wrote:
On 2007 Jun, 06, at 3:56, Devraj Mukherjee wrote:
> I just wanted to confirm if a NSDictionary is how you pass information
> to a notification
>
> http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
> Classes/NSNotification_Class/Reference/Reference.html#//apple_ref/
> occ/clm/NSNotification/notificationWithName:object:userInfo:
If you're referring to the object:userInfo argument, the answer is
yes. An NSDictionary is typically used because it allows flexibility
for future changes. But in fact you may pass any object.
Click the link at the bottom of that document and suggest that it
would be nice if the docs would explain that for newbies.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden