Re: Attributed menu titles
Re: Attributed menu titles
- Subject: Re: Attributed menu titles
- From: Brett Powley <email@hidden>
- Date: Thu, 10 Jul 2008 10:45:28 +1000
On 10/07/2008, at 9:42 AM, Kiel Gillard wrote:
Is there some way to provide a colour for the NSMenuItem's
attributedTitle
when the item is selected or disabled? For example, is there some
key I can
You could draw it yourself -- in 10.5 at least you can call setView on
the NSMenuItem:
Discussion
A menu item with a view does not draw its title, state, font, or
other standard drawing attributes, and assigns drawing
responsibility entirely to the view. Keyboard equivalents and type-
select continue to use the key equivalent and title as normal. For
more details, see Application Menu and Pop-up List Programming
Topics for Cocoa.
Cheers,
Brett
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden