Re: enabling Edit menu items in a modal window?
Re: enabling Edit menu items in a modal window?
- Subject: Re: enabling Edit menu items in a modal window?
- From: Graham Cox <email@hidden>
- Date: Sat, 28 Feb 2009 10:44:41 +1100
On 28/02/2009, at 4:26 AM, Steve Christensen wrote:
I'm working on a plugin that needs to do its configuration in a
modal window. As soon as it calls [NSApp runModalForWindow:window],
the items in the Edit menu are disabled. Is there some way to
selectively enable some of the items? For instance, it'd be nice if
I could do a Select All...
Well, does your modal window or its first responder or anything in-
between implement selectAll:?
Commands in a menu will be enabled if anything in the responder chain
can a) respond to them or b) explicitly enables them in a -
validateMenuItem: call. When a modal window is displayed, the
responder chain goes as far as the window and stops - it doesn't
continue on up to the app as a modeless window's responder chain does.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden