• 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: assigning delete key to menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: assigning delete key to menu item (From: Jonathan Hendry <email@hidden>)

  • Prev by Date: Makin' frameworks
  • Next by Date: Getting Notification of Sleep
  • Previous by thread: Re: assigning delete key to menu item
  • Next by thread: releasing NSArrays, NSDictionaries, etc ??
  • Index(es):
    • Date
    • Thread