On 19 Aug 2009, at 09:38, Tim Kack wrote:
Note, at this point _delegate will be 0xdeadface because the
EditWindowController has been deallocated and therefore
respondsToSelector
will crash.
Now, my question is - is this a GNUMail bug (i.e. the NSToolbar
should
have been deallocated earlier) or is it a problem with the
GSWindowDecorationView removeToolbarView? Perhaps there should be a
check
if the delegate still is valid before calling setFrame?
I'm not really familiar with the code concerned, but from your
description
it sounds like the bug is in EditWindowController
If EditWindowController has set itsself as the delegate for a window,
it
should also have removed itsself as the delegate at the start of its
-dealloc method.
It's a firm rule that an object must remove itsself as a delegate of
any
other object before it deallocates itsself.