• 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
NSApplication delegate not released on quit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSApplication delegate not released on quit?


  • Subject: NSApplication delegate not released on quit?
  • From: Ron Wagner <email@hidden>
  • Date: Fri, 13 Jun 2003 17:15:04 -0400

I am hooking up an instance of a subclass of NSObject as a delegate for the application object. I just noticed that the delegate class is not getting its dealloc called when quitting the application. Should I be autoreleasing the delegate in the - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*) sender method if the application will be terminating? Doesn't seem right since I haven't seen any sample code do this.

I am wiring the delegate to in instance of the custom class in IB, and not retaining it anywhere in code.

And thanks to Fritz on a separate thread. I was able to find some documentation on the view system which helped a lot.

Thanks,

Ron Wagner
_______________________________________________
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: newbie wants advice on WWDC please (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: CGShieldingWindowLevel question
  • Next by Date: Re: NSApplication delegate not released on quit?
  • Previous by thread: Re: newbie wants advice on WWDC please
  • Next by thread: NSTableView event handlers not there
  • Index(es):
    • Date
    • Thread