Re: Cocoa AU window close and retain count
Re: Cocoa AU window close and retain count
- Subject: Re: Cocoa AU window close and retain count
- From: Michael Hopkins <email@hidden>
- Date: Thu, 26 Apr 2007 17:11:57 -0700
J.C.,
Try overriding removeFromSuperview (an NSView method) and invalidate
your timer there. That message will be called during the closing of
the host window when all views (including yours) will be removed from
the view hierarchy.
Hope this helps!
-michael
On Apr 26, 2007, at 11:35 AM, J. C. wrote:
As far as I understand, when closing the window of an AU, the hosts
calls "release" on the "CocoaView". This should call dealloc, where
the event listeners are removed. The problem is that if any object
has retained the view (in my case a timer), then dealloc is never
called, causing problems the next time the window is opened.
My question is: Is there any method I can implement that will get
called on window close, so that I can invalidate my timer so tha
the view gets properly released? If not, then what would be the
best way to solve this issue?
Thanks,
J.C.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden