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
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 mails | Author | Date |
|---|---|---|
| Jonathan del Strot… | Sep 1, 13:26 | |
| Daniel Jalkut | Sep 1, 15:17 | |
| Eric Schlegel | Sep 1, 16:39 |






Cocoa mail archive

