NSApplication delegate not released on quit?
NSApplication delegate not released on quit?
- Subject: NSApplication delegate not released on quit?
- From: Ron Wagner <email@hidden>
- Date: Fri, 13 Jun 2003 17:15:04 -0400
I am hooking up an instance of a subclass of NSObject as a delegate for
the application object. I just noticed that the delegate class is not
getting its dealloc called when quitting the application. Should I be
autoreleasing the delegate in the -
(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)
sender method if the application will be terminating? Doesn't seem
right since I haven't seen any sample code do this.
I am wiring the delegate to in instance of the custom class in IB, and
not retaining it anywhere in code.
And thanks to Fritz on a separate thread. I was able to find some
documentation on the view system which helped a lot.
Thanks,
Ron Wagner
_______________________________________________
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.