• 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: set keyEquivalent for an NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set keyEquivalent for an NSMenuItem


  • Subject: Re: set keyEquivalent for an NSMenuItem
  • From: Martin Batholdy <email@hidden>
  • Date: Thu, 19 May 2011 16:04:47 +0200

That did it!
Thank you!

[newItem setKeyEquivalentModifierMask:SRCarbonToCocoaFlags(256)];


On 19.05.2011, at 15:45, Andy Lee wrote:

> On May 19, 2011, at 9:24 AM, Martin Batholdy wrote:
>> However
>> [newItem setKeyEquivalentModifierMask:modifierMask];
>> has no effect  / doesn't work.
>
> I wonder if ShortcutRecorder stores Carbon masks instead of Cocoa masks. Maybe try converting with SRCarbonToCocoaFlags()?
>
> --Andy
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >set keyEquivalent for an NSMenuItem (From: Martin Batholdy <email@hidden>)
 >Re: set keyEquivalent for an NSMenuItem (From: Andy Lee <email@hidden>)
 >Re: set keyEquivalent for an NSMenuItem (From: Martin Batholdy <email@hidden>)
 >Re: set keyEquivalent for an NSMenuItem (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: The simplest way to fade out a view
  • Next by Date: How to disable menu item?
  • Previous by thread: Re: set keyEquivalent for an NSMenuItem
  • Next by thread: Installing application on a network onto several computers
  • Index(es):
    • Date
    • Thread