Re: Crashing Problem calling postNotificationName
Re: Crashing Problem calling postNotificationName
- Subject: Re: Crashing Problem calling postNotificationName
- From: "Gary L. Wade" <email@hidden>
- Date: Wed, 11 Sep 2013 07:11:06 -0700
On Sep 11, 2013, at 6:52 AM, Dave <email@hidden> wrote:
> I mean when the object is created - at this point I want the latest version of the Notification, not the Notification when the Object Died.
NSNotification and the various Center classes are meant to be used for loosely coupling between classes. If you want to preserve state for your class, you need to do that yourself, and while you could encapsulate that in an NSNotification, it's overkill and causes you to think along lines for which the class was not designed.
--
Gary L. Wade (Sent from my iPhone)
http://www.garywade.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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