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

Attributed menu titles


  • Subject: Attributed menu titles
  • From: "Kiel Gillard" <email@hidden>
  • Date: Thu, 10 Jul 2008 09:42:27 +1000

Hi all,
I have a menu of items whose titles are attributed strings. I have specified
custom colours for parts of those strings. The documentation reads:

If you do not set a text color for the attributed string, it is black when
not selected, white when selected, and gray when disabled. Colored text
remains unchanged when selected.

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
set in an attributes dictionary that allows me to specify a colour to use
when either of these cases occurs? Have I overlooked or missed something in
the documentation?

Thanks,

Kiel
_______________________________________________

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

  • Follow-Ups:
    • Re: Attributed menu titles
      • From: Peter Ammon <email@hidden>
    • Re: Attributed menu titles
      • From: Brett Powley <email@hidden>
  • Prev by Date: Re: [Q] How to highlighted text remained as highlighted?
  • Next by Date: Re: Calling autorelease on CFAllocated objects?
  • Previous by thread: Re: [Q] How to highlighted text remained as highlighted?
  • Next by thread: Re: Attributed menu titles
  • Index(es):
    • Date
    • Thread