• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSApplication delegate not released on quit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSApplication delegate not released on quit? (From: Henry McGilton <email@hidden>)

  • Prev by Date: Re: Unstable tools?
  • Next by Date: Re: Really confused about "bounds" and "frames".
  • Previous by thread: Re: NSApplication delegate not released on quit?
  • Next by thread: Re: NSApplication delegate not released on quit?
  • Index(es):
    • Date
    • Thread