Re: assigning delete key to menu item
Re: assigning delete key to menu item
- Subject: Re: assigning delete key to menu item
- From: Jonathan Hendry <email@hidden>
- Date: Fri, 28 Sep 2001 19:14:03 -0500
Doh, it's \d, not \b. Just verified it in IB and I got the
delete icon.
On Friday, September 28, 2001, at 11:26 , Sven A. Schmidt wrote:
On Donnerstag, September 27, 2001, at 03:03 Uhr, Jonathan Hendry wrote:
On Wednesday, September 26, 2001, at 06:21 , Andrew Platzer wrote:
On Tuesday, September 25, 2001, at 06:55 , Sven A. Schmidt wrote:
I have looked at the archives for this one, because it really smells
like a faq - but it seems like it hasn't come up yet:
How can I assign the backspace key as a menu shortcut?
You have to do it via code:
unichar backspaceKey = NSBackspaceCharacter;
[menuItem setKeyEquivalent:[NSString stringWithCharacters:&backspaceKey
length:1]];
I think you can do it in IB by setting the shortcut character to \B
I tried this and it just assigns "\". But setting it programmatically
works fine.
Thanks,
Sven