Re: Displaying symbol for Enter key in menu item
Re: Displaying symbol for Enter key in menu item
- Subject: Re: Displaying symbol for Enter key in menu item
- From: Robert Tillyard <email@hidden>
- Date: Thu, 20 Jan 2005 18:39:30 +0000
I've used the following...
[connectButton setKeyEquivalent:@"\r"];
Regards, Rob.
On 20 Jan 2005, at 6:01 pm, Mark Alldritt 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
_______________________________________________
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