Re: NSView subclass never gets dealloced?
Re: NSView subclass never gets dealloced?
- Subject: Re: NSView subclass never gets dealloced?
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 28 Mar 2002 22:51:33 -0800
On Thursday, March 28, 2002, at 07:31 PM, Jonathan Wight wrote:
I've got a subclass of NSView which nicely cleans up after itself when
it
gets dealloc-ed. Or rather _would_ if it ever got the dealloc message.
Whenever I quit the application or close the view's window no dealloc
message gets sent. It's almost as if the quit menu item calls exit(0)
directly :-)
If your window controller inherits from NSWindowController, it should
ensure that everything's tidied up.
Is the behavior I'm seeing to be expected? Seems fishy to me.
Pragmatically, if it doesn't get called when the app terminates, then
piscine or not, it won't really matter as the OS will clear up the
memory for you. If this is happening for a number of windows, then it's
more of a problem.
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.