Skip navigation.
 
mlRe: Creating NSMenus from scratch - bold titles?
FROM : Eric Schlegel
DATE : Fri Sep 01 16:39:27 2006

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

Related mailsAuthorDate
mlCreating NSMenus from scratch - bold titles? Jonathan del Strot… Sep 1, 13:26
mlRe: Creating NSMenus from scratch - bold titles? Daniel Jalkut Sep 1, 15:17
mlRe: Creating NSMenus from scratch - bold titles? Eric Schlegel Sep 1, 16:39