Re: key equivalents in Interface Builder Xcode 4
Re: key equivalents in Interface Builder Xcode 4
- Subject: Re: key equivalents in Interface Builder Xcode 4
- From: Quincey Morris <email@hidden>
- Date: Fri, 01 Jul 2011 18:07:03 -0700
On Jul 1, 2011, at 17:44, Brian Gardner wrote:
> Is there a way to find a list of all the taken (or available) key equivalents?
Not really. There used to be documents listing the standard ones, but it wasn't much use because many apps didn't conform to the list, including many Apple apps.
> I also have a whole added menu, whose key equivalents are
> all based on the Option key (option-r, option-a, option-d, option-i, etc).
> None of these Option- key equivalents are working, either.
Well, it's always a good idea to check the documentation. I searched for "NSMenu" at developer.apple.com and found this guide:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MenuList/Articles/SettingMenuKeyEquiv.html
which says that the base character must be able to be produced without any modifiers other than Shift. That probably is going to mean that Option-characters aren't going to work. What I mean is that Option-F is ƒ, not some kind of F.
> Am I doing something wrong? Are Option-Letter key equivalents disallowed?
Try these things:
1. Change Option-R to just R, and see if that works.
2. Pull down the menus and see if the key equivalents are shown.
3. Pull down the menus and see if the menu items are enabled.
4. Write some code in a convenient place (some time after the main menu nib has been completely loaded) that retrieves the actual key equivalent of some of your menu items, and see what the string looks like.
I recently used space, arrow keys, page up and down keys as key equivalents set in IB, and they worked fine.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden