Re: NSApplication delegate not released on quit?
Re: NSApplication delegate not released on quit?
- Subject: Re: NSApplication delegate not released on quit?
- From: Hsu <email@hidden>
- Date: Fri, 13 Jun 2003 22:42:26 -0700
So all your singleton objects should register themselves to the
NSApplicationWillTerminateNotification to free themselves? Or a
message should be sent to classes to do it? I'm pretty sure there are
more interesting and useful things to do in your code than that. I
don't see why admitting that some "immortal" objects live until the
application dies is such a big deal. Think of it as another kind of
contract, and you're done.
This is great until you decide to use that object somewhere else, for
some other reason, and then it starts leaking...
Karl
--
"Give me your tired, your poor, your huddled masses."
And while you're at it, throw in a couple of those Dallas Cowboy
cheerleaders.
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
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.