Non-character as button key equivalent
Non-character as button key equivalent
- Subject: Non-character as button key equivalent
- From: Thomas Jahnsen <email@hidden>
- Date: Thu, 25 Jul 2002 21:14:20 +1000
Hello
I'm having two buttons with arrows in them, one to the right and one to
the left. Now I want the user to be able to press Cmd-Right/Left Arrow
to invoke these buttons (besides simply clicking them). But I am a bit
unsure of what to type in the IB key equivalent box, or pass to the
NSButton setKeyEquivalent: (which takes an NSString argument).
Does Cocoa support non-printing characters as key equivalent? I know
there is functionality for it in Carbon, there is a Menu Manager
function SetMenuItemKeyGlyph that can set the printed equivalent to
arrows.
And no, there are no text fields in this window that wants Cmd-Arrow to
modify the insertion point.
-Thomas Jahnsen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.