"Space" key equivalent for menu items
"Space" key equivalent for menu items
- Subject: "Space" key equivalent for menu items
- From: Andreas Schwarz <email@hidden>
- Date: Tue, 9 Apr 2002 11:28:45 -0700
I have a couple NSMenuItems whose key equivalent I want to set to be the
space bar (I want one to respond to command-space and the other to
command-option-space). Entering " " (a space) into the key equivalent
field in IB makes the key equivalent in the menu show up as "Space", so
seems like it should work.
However, as soon as I use it in my app (or even do "Test interface" from
IB) the key equivalent no longer shows up as "Space" (it shows up as
blank, although the modifiers are still shown in the menu) and the menu
items don't respond to command-space or command-option-space.
I did try programmatically setting the key equivalent to @" ", but that
just gave me the same result.
Is there anything I'm doing wrong? Is this just not supported (in spite
of what IB implies) or is this a bug? Anyone know how to work around it?
Thanks,
Andreas Schwarz
http://homepage.mac.com/schwarz
_______________________________________________
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.