• 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: Deallocation while key value observers still registered
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deallocation while key value observers still registered


  • Subject: Re: Deallocation while key value observers still registered
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 25 May 2010 09:29:40 -0700

On Tue, May 25, 2010 at 9:08 AM, aglee <email@hidden> wrote:
> I had an idea for a perverse hack to deal with the problem in Leopard, which
> was to to override release and do the deregistering there if the retainCount
> is 1, thus sneaking in the deregistering just before dealloc but no sooner.

I believe this was actually impossible because of where the dealloc
check was implemented (right at the top of -release, IIRC; -dealloc
didn't actually do the checking, just the work of cleaning up).

--Kyle Sluder
_______________________________________________

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: Deallocation while key value observers still registered
      • From: Gideon King <email@hidden>
References: 
 >Re: Deallocation while key value observers still registered (From: Roland King <email@hidden>)
 >Re: Deallocation while key value observers still registered (From: aglee <email@hidden>)

  • Prev by Date: Re: Deallocation while key value observers still registered
  • Next by Date: -[NSMutableSet randomObject]
  • Previous by thread: Re: Deallocation while key value observers still registered
  • Next by thread: Re: Deallocation while key value observers still registered
  • Index(es):
    • Date
    • Thread