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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to