Re: Don't make me override -(void)release
Re: Don't make me override -(void)release
- Subject: Re: Don't make me override -(void)release
- From: Charles Steinman <email@hidden>
- Date: Thu, 27 Dec 2007 13:58:25 -0800 (PST)
--- glenn andreas <email@hidden> wrote:
> So what's a good way to unbind objects that don't
> have clean cut
> release patterns (since this will only be released
> when the last
> reference is removed, and there's no obvious case of
> knowing,
> especially since it may be in the dictionary more
> than once under
> different keys, as well as the array that keeps the
> order, and if
> something is "hidden" is is removed from that
> array)?
It seems to me that -removeAllItems would be the best
place for the view to remove itself as an observer
(because that is when the view no longer cares about
the object's changes).
Cheers,
Chuck
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
_______________________________________________
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