• 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: Displaying symbol for Enter key in menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying symbol for Enter key in menu item


  • Subject: Re: Displaying symbol for Enter key in menu item
  • From: Dan Bernstein <email@hidden>
  • Date: Mon, 24 Jan 2005 14:09:31 +0200

[myMenuItem setKeyEquivalent:@"\x03"];
[myMenuItem setKeyEquivalentModifierMask:0];

On Thu, 20 Jan 2005 10:01:54 -0800, Mark Alldritt
<email@hidden> wrote:
> Hi All,
>
> How do I display the symbol for the Enter key as the key equivalent for a
> menu item?
>
> I've tried this:
>
>     //    Add the Enter glyph to the Compile/Check Syntax menu item
>     assert(mCheckSyntaxItem);
>     [mCheckSyntaxItem setKeyEquivalent:[NSString stringWithFormat:@"%C",
> 0x2386]];
>     [mCheckSyntaxItem setKeyEquivalentModifierMask:0];
>
> But this has no effect.  My google seaches turned up 0x2386 as the Unicode
> value for the Enter Symbol.
>
> Cheers
> -Mark
>
> ------------------------------------------------------------------------
> Mark Alldritt                      Late Night Software Ltd.
> Phone: 250-380-1725                Script Debugger 3.0 - AppleScript IDE
> WEB:  http://www.latenightsw.com/  Affrus 1.0 - Perl Debugging
>
>  _______________________________________________
> 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
>
 _______________________________________________
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

References: 
 >Displaying symbol for Enter key in menu item (From: Mark Alldritt <email@hidden>)

  • Prev by Date: NSAppleEventManager stops recieving events
  • Next by Date: Re: Manual binding questions.
  • Previous by thread: Re: Displaying symbol for Enter key in menu item
  • Next by thread: Binding problem
  • Index(es):
    • Date
    • Thread