Re: How can an object know when another object has gone away?
Re: How can an object know when another object has gone away?
- Subject: Re: How can an object know when another object has gone away?
- From: "James W. Walker" <email@hidden>
- Date: Sun, 15 Jun 2008 15:53:48 -0700
On Jun 15, 2008, at 3:25 PM, Andreas Monitzer wrote:
On Jun 16, 2008, at 00:20, James W. Walker wrote:
Is there a standard Cocoa design pattern or idiom to have an object
find out when another object has been destroyed? In PowerPlant,
I'd use LBroadcaster and LListener, with the listener listening for
msg_BroadcasterDied.
What about using NSNotificationCenter?
Thanks, it looks like that would work. Somehow I was under the
impression that notifications were, uh, broadcast more broadly than I
wanted, but now I see that you can register to receive notifications
only for a specific object.
_______________________________________________
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