On 26 jul 2011, at 09:32, Bill Appleton wrote: > >> 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.
Note that Cut and Copy will only be enabled if you have something to Cut and Copy - In other words, you need a *selection* in the focused text field / view. > >> 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. The issue is not that you have a modal dialog up, event handling still works more or less the same way for modal dialogs. j o a r _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com