Re: Can't release a NSWindowController when a window close
Re: Can't release a NSWindowController when a window close
- Subject: Re: Can't release a NSWindowController when a window close
- From: Luca Caviglione <email@hidden>
- Date: Wed, 24 Jan 2007 10:19:31 +0100
Dear Joar,
Il giorno 21/gen/07, alle ore 20:51, j o a r ha scritto:
If your window controller is the target of a timer action it's no
wonder that it's not deallocated - as the timer retains its target.
Make sure to remove / invalidate all timers in your "-
windowWillClose:" and see what happens. I wouldn't be surprised if
it would solve your problem.
Yes, this suggestion helped (I have now some minor glitches with the
autorelease but it is another story :-)). So, for further reference,
this hint clarifies (to myself) the discussion in http://
www.cocoabuilder.com/archive/message/cocoa/2004/9/1/116402 . It was
already suggested to invalidate the timer, but now it appears more
clear (to me) when and why.
Thank you very much Joar,
Best,
Luca
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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