• 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: Attributed menu titles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Attributed menu titles (From: "Kiel Gillard" <email@hidden>)

  • Prev by Date: Re: Nesting IKImageBrowser GroupStyles
  • Next by Date: Re: Attributed menu titles
  • Previous by thread: Attributed menu titles
  • Next by thread: Re: Attributed menu titles
  • Index(es):
    • Date
    • Thread