• 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
When is my delegate released?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When is my delegate released?


  • Subject: When is my delegate released?
  • From: Allan Odgaard <email@hidden>
  • Date: Sun, 7 Jul 2002 13:15:06 +0200

Hi there,

Since I want to implement proper resource management then I overload the dealloc in my controller objects (which are often given as delegates).

But whos job is it to actually release these objects (currently they are not released at all)?

As of such, most of my apps have their controller instantiated in the Nib-file, but should I react on "applicationWillTerminate" or similar, and then call release on my delegate?
_______________________________________________
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: When is my delegate released?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: NSMenu: indented items (a la Apple's "Recent Items"-menu)
  • Next by Date: Which dock menuitem did trigger the event?
  • Previous by thread: [solved] NSMenu: indented items (a la Apple's "Recent Items"-menu)
  • Next by thread: Re: When is my delegate released?
  • Index(es):
    • Date
    • Thread