discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with GNUMail or GSDecorationView?


From: Richard Frith-Macdonald
Subject: Re: Problems with GNUMail or GSDecorationView?
Date: Wed, 19 Aug 2009 09:56:18 +0100


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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]