Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Don't make me override -(void)release



--- 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Don't make me override -(void)release (From: glenn andreas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.