• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSMenuItem
      • From: Andrew Farmer <email@hidden>
References: 
 >NSMenuItem (From: Vasya Danylyshyn <email@hidden>)
 >Re: NSMenuItem (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: programmatically determining if the machine is intel or not
  • Next by Date: Do added types to Address Book sync?
  • Previous by thread: Re: NSMenuItem
  • Next by thread: Re: NSMenuItem
  • Index(es):
    • Date
    • Thread