• 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: Quit Application doesn't send window close methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quit Application doesn't send window close methods


  • Subject: Re: Quit Application doesn't send window close methods
  • From: David Rio Vierra <email@hidden>
  • Date: Tue, 31 Dec 2002 20:51:40 -1000

Well, you have two ways of doing this. In your app controller, which is a delegate of NSApp, implement -applicationWillTerminate: and do cleanup code there. You may also register some of your objects for the NSApplicationWillTerminateNotification so they can do their own cleanup.

- Rio


On Tuesday, December 31, 2002, at 04:47 PM, Ted Lowery wrote:

Hi all-

I've noticed when I quit my application, I don't get any delegate messages, things like windowShouldClose, windowWillClose or windowDidResignKey.

What is the right way to trap for an application quitting so I can clean up? If I close the window first, clean up happens, as I override windowDidResignKey method.

Thanks, Ted
_______________________________________________
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.
_______________________________________________
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: 
 >Quit Application doesn't send window close methods (From: Ted Lowery <email@hidden>)

  • Prev by Date: Re: Looking for an explanation on this CoreFoundation "feature"
  • Next by Date: [Dumb Question] How to access indicator images?
  • Previous by thread: Quit Application doesn't send window close methods
  • Next by thread: [Dumb Question] How to access indicator images?
  • Index(es):
    • Date
    • Thread