In the manual it says: "However, subclasses of other Application Kit classes (including custom views) need to provide their own implementations of performKeyEquivalent:. The implementation should extract the characters for a key equivalent from the passed-in NSEvent object using the charactersIgnoringModifiers method and then examine them to determine if they are a key equivalent it recognizes. It handles the key equivalent much as it would handle a key event in keyDown"
i can do that manually for each control in my dialog. BUT my question is that it seems like there ought to be an easy or automatic way to do this. If i right-click on a text control i get a pop up menu with cut, copy, and other options. That same control isn't smart enough to handle the control-X key? It just seems strange, I'm looking for the right way to do this & don't want to reinvent the wheel for controls in a dialog. Best On Mon, Jul 25, 2011 at 9:47 PM, Kyle Sluder <kyle.slu...@gmail.com> wrote: > On Mon, Jul 25, 2011 at 1:43 PM, Bill Appleton > <billapple...@dreamfactory.com> wrote: > > Hi all, > > > > Based on my app, the dialog boxes have to be created dynamically, so i > can't > > use Interface Builder, so they are assembled out of cocoa controls as > > needed. > > > > My dialogs beep when i control-x to cut some selected text > > > > What is the simple way for my dialog window to pass these command keys > > events down to the text views? > > Please read the Cocoa Event Handling Guide: > > http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/Introduction/Introduction.html#//apple_ref/doc/uid/10000060i-CH1-SW1 > > --Kyle Sluder > _______________________________________________ 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