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: Sat, 14 Jun 2003 10:35:31 -0700
On Friday, June 13, 2003, at 11:32 PM, Henry McGilton wrote:
In the context of Marco's post on this subject, I am not sure
how you are supposed to use 'that object' 'somewhere else'
when the entire application has been shut down, the memory
has been re-claimed, the horse has been shot, and the barn
doors have been shut.
An object's behavior should be as independant as possible from it's
usage patterns - it's just good defensive programming.
Yes, that particular object might be the application delegate right
now, and have a lifetime equal to that of the application's, but that
doesn't mean a year later you (or someone else working with your code)
might try and use that object in another context, where it doesn't have
an life bounded by the application lifetime.
Karl
--
Migratory life-form with a tropism for bookstores.
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.