On Tue, May 25, 2010 at 9:08 AM, aglee <ag...@mac.com> 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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to