• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Don't make me override -(void)release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Don't make me override -(void)release
  • Next by Date: Re: Don't make me override -(void)release
  • Previous by thread: Don't make me override -(void)release
  • Next by thread: Re: Don't make me override -(void)release
  • Index(es):
    • Date
    • Thread