Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Non-character as button key equivalent



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.