• 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: applicationShouldTerminate oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applicationShouldTerminate oddity


  • Subject: Re: applicationShouldTerminate oddity
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 22 Feb 2002 17:33:51 -0800

On Friday, February 22, 2002, at 12:11 PM, Judi Smith wrote:

OK Folks,

I don't understand this at all.

I have a delegate for NSApp. That delegate implements the method "applicationShouldTerminate" When I quit from the menu, the delegate method is performed. When I choose Command-Q, the method is not performed.

What's up with that?

I just tried this in an app of mine, and I'm getting the expected behaviour (ie, same thing whether I hit command-q or use the menu.)

Is your "Quit" menu item wired up to the "file's owner" or the "first responder" in your nib file?

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
_______________________________________________
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: 
 >applicationShouldTerminate oddity (From: Judi Smith <email@hidden>)

  • Prev by Date: Re: NSDrawer bug?
  • Next by Date: clicking in NSCells
  • Previous by thread: applicationShouldTerminate oddity
  • Next by thread: Re: NSWorkspaceRecycleOperation and auto-renaming items moved to Trash
  • Index(es):
    • Date
    • Thread