Re: Deallocation while key value observers still registered
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