• 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: Sheets to dialogs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sheets to dialogs


  • Subject: Re: Sheets to dialogs
  • From: John Stiles <email@hidden>
  • Date: Wed, 4 Jan 2006 17:04:50 -0800

On Jan 4, 2006, at 5:01 PM, Adam Leonard wrote:

On Jan 4, 2006, at 4:11 PM, John Stiles wrote:
[window makeKeyAndOrderFront:NULL];

That should be "nil" or "self"

Not asking for a code critique, thanks though.


As for your question, see <http://developer.apple.com/documentation/ Cocoa/Reference/ApplicationKit/ObjC_classic/Protocols/ NSMenuValidation.html#//apple_ref/occ/instm/NSObject/ validateMenuItem:>

The selector you want is terminate:

Well, that'll tackle the cmd+Q bit. (I actually took care of this angle via the applicationShouldTerminate delegate, pending a better fix.)


My real concern is this: showing a sheet seems to throw the app into a slightly different "mode," and I don't know 100% what that entails. At the very least, it disables Quit, but it probably does something more than that as well. And rather than guess, I'd like to know exactly what's going on (and if possible, I'd like to just enter that mode). I'm trying to avoid breaking anything that used to work, so the real goal is "minimize changes."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sheets to dialogs
      • From: Adam Leonard <email@hidden>
References: 
 >Sheets to dialogs (From: John Stiles <email@hidden>)
 >Re: Sheets to dialogs (From: Adam Leonard <email@hidden>)

  • Prev by Date: Re: Sheets to dialogs
  • Next by Date: Re: start window inside and NSDocument based application
  • Previous by thread: Re: Sheets to dialogs
  • Next by thread: Re: Sheets to dialogs
  • Index(es):
    • Date
    • Thread