Re: NSMenuItem
Re: NSMenuItem
- Subject: Re: NSMenuItem
- From: Vasya Danylyshyn <email@hidden>
- Date: Wed, 17 May 2006 16:13:08 +0300
newItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]]
initWithTitle:@"My item" action:NULL keyEquivalent:[NSString
stringWithFormat:@"%C",NSPageUpFunctionKey]];
[newItem setKeyEquivalentModifierMask:NSNumericPadKeyMask];
this code, create menu item, with 'PageUp' key equivalent.
If i try use:
newItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]]
initWithTitle:@"My item" action:NULL keyEquivalent:[NSString
stringWithFormat:@"%C",0x0020]];
[newItem setKeyEquivalentModifierMask:NSNumericPadKeyMask];
(where 0x0020 - space character)
the menu no contains 'SPACE' key equivalent :(
On May 17, 2006, at 3:47 PM, Ondra Cada wrote:
Vasya,
On 17.5.2006, at 13:35, Vasya Danylyshyn wrote:
How i can create menu item with " "(space) key equivalent, without
modifier key?
IIRC, you cannot set menu key equivalents without Command at all.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden