Re: Sheets to dialogs
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