• 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: 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.

  • Follow-Ups:
    • Re: NSApplication delegate not released on quit?
      • From: Marco Scheurer <email@hidden>
    • Re: NSApplication delegate not released on quit?
      • From: Henry McGilton <email@hidden>
    • Re: NSApplication delegate not released on quit?
      • From: Wade Tregaskis <email@hidden>
References: 
 >Re: NSApplication delegate not released on quit? (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: Cocoa's custom class delegate conventions
  • Next by Date: Re: NSApplication delegate not released on quit?
  • Previous by thread: Re: NSApplication delegate not released on quit?
  • Next by thread: Re: NSApplication delegate not released on quit?
  • Index(es):
    • Date
    • Thread