Re: Debugging (apparently) random retain loop bug (NSArrayController)
Re: Debugging (apparently) random retain loop bug (NSArrayController)
- Subject: Re: Debugging (apparently) random retain loop bug (NSArrayController)
- From: Matt Neuburg <email@hidden>
- Date: Sun, 07 Feb 2010 08:58:27 -0800
- Thread-topic: Debugging (apparently) random retain loop bug (NSArrayController)
On Fri, 5 Feb 2010 13:04:06 -0800 (PST), Keith Blount
<email@hidden> said:
>in its nib somewhere internally, but it *is* getting released after all. The
problem is that during 3), the project that is loading sends out some
notifications while the array controller is still around, so the array
controller still in memory picks them up and checks to see if they are coming
from its main document or window controller, but these no longer exist so it
panics and quits.
It's funny you should mention this, because I was just groaning the other
day about how difficult it is to debug notifications. Where notifications
are under my control (i.e. I am the one who is posting them and/or
registering to receive them), I have recently adopted a policy of
registering in as specific a way as possible, as late as possible, and of
unregistering specifically and as soon as possible. But even so there can be
problems, and the fact that it is *still* after all these years of Cocoa
impossible to ask an NSNotificationCenter to display its dispatch table, for
debugging purposes, is simply inhuman. I've had a bug in on this for years,
which remains open. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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