• 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: Creating NSMenus from scratch - bold titles?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating NSMenus from scratch - bold titles?


  • Subject: Re: Creating NSMenus from scratch - bold titles?
  • From: Eric Schlegel <email@hidden>
  • Date: Fri, 1 Sep 2006 07:39:27 -0700


On Sep 1, 2006, at 4:26 AM, Jonathan del Strother wrote:

I'm trying to create my NSMenu from scratch, and running into the problem that NSMenu doesn't respond to setAttributedTitle. So the application menu heading (the one that, for example, says 'Safari' in Safari) appears in plain text, with no bolding.

How can I get around this?

The Menu Manager recognizes a menu with the Apple character (Unicode 0xF8FF, kAppleLogoUnicode in HIToolbox/Events.h) as being the Application menu, and automatically draws replaces its title with a bold version of the app's name. If you're replacing your own Application menu, you should set the title to the Apple character.


-eric

_______________________________________________
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


  • Follow-Ups:
    • Opening Classic Application Files? - newbie question
      • From: joe OneNinetyTwo <email@hidden>
References: 
 >Creating NSMenus from scratch - bold titles? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Re: Re: +/- button(s)?
  • Next by Date: Opening Classic Application Files? - newbie question
  • Previous by thread: Re: Creating NSMenus from scratch - bold titles?
  • Next by thread: Opening Classic Application Files? - newbie question
  • Index(es):
    • Date
    • Thread