Re: Dialog Command Keys
Re: Dialog Command Keys
- Subject: Re: Dialog Command Keys
- From: Bill Appleton <email@hidden>
- Date: Tue, 26 Jul 2011 09:32:24 -0700
>> OK, great. In that case it's weird that your cut/copy/paste items are
not enabled while a text field in your dialog has focus. You have focus set
in one of your text fields / views, right?
I just tried enabling the edit menu items when a dialog is up, that didn't
change anything. The NSTextField is blinking and typing into the field
works, so it has focus.
>> Not sure what you mean with "not using the main app menu system"? I'd
argue that it should be, and that you should be using regular first
responder based menu item validation for making sure that only the menu
items that make sense are enabled during your modal session (again something
that typically works without any additional work on your part).
Well, when the dialog field has selected text and i type command-x my menu
item's action handler is NOT invoked, because there is a modal dialog up I
guess. On microsoft windows if you have a text field up on a dialog with
focus it just responds to control-x and cuts the text. It doesn't matter
what is happening in the application menus.
On Tue, Jul 26, 2011 at 9:17 AM, Joar Wingfors <email@hidden> wrote:
>
> On 26 jul 2011, at 09:03, Bill Appleton wrote:
>
> > The items in the main menu DO have the standard key bindings, they are
> disabled when the modal dialogs come up
> > The items in the right-click menu do NOT have the key bindings but they
> are enabled, i didn't make these menus
> > The dialogs are modal
>
>
> OK, great. In that case it's weird that your cut/copy/paste items are not
> enabled while a text field in your dialog has focus. You have focus set in
> one of your text fields / views, right?
>
>
> > I agree it should just work. Is the problem that the main app menus need
> to be enabled when the dialogs are up? the dialogs are not using the main
> app menu system at that time...
>
>
> Not sure what you mean with "not using the main app menu system"? I'd argue
> that it should be, and that you should be using regular first responder
> based menu item validation for making sure that only the menu items that
> make sense are enabled during your modal session (again something that
> typically works without any additional work on your part).
>
>
> j o a r
>
>
>
_______________________________________________
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