• 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: "Delete" icon as a menu item shortcut
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Delete" icon as a menu item shortcut


  • Subject: Re: "Delete" icon as a menu item shortcut
  • From: Axel Andersson <email@hidden>
  • Date: Sat, 4 Jan 2003 19:52:35 +0100

On Saturday, Jan 4, 2003, at 18:46 Europe/Stockholm, Fridiric BLANC
wrote:

> It's still me Sorry & Thanks.
>
> So, now, is there someone who knows how I can get the pretty backward
> delete icon found on the "Delete" menu item in Apple Mail? I searched
> everywhere in the docs w/o success. I only saw this isn't IB-based in
> Apple Mail - and so seems to be set in PB. But I only need the String
> constant to use as a parameter to the setKeyEquivalent() method.
> Note: Yep, this is still for my Cocoa-Java-based app

unichar backspace;
backspace = NSBackspaceCharacter;
[deleteMenuItem setKeyEquivalent:[NSString
stringWithCharacters:&backspace length:1]];

Works for me.

Cheers,
Axel Andersson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: "Delete" icon as a menu item shortcut
      • From: Frédéric BLANC <email@hidden>
References: 
 >How? ("Delete" icon as a menu item shortcu t…) (From: Frédéric BLANC <email@hidden>)

  • Prev by Date: Localization w/ parameters
  • Next by Date: Re: NSOutlineView -> Reloading ALL data
  • Previous by thread: How? ("Delete" icon as a menu item shortcu t…)
  • Next by thread: Re: "Delete" icon as a menu item shortcut
  • Index(es):
    • Date
    • Thread