• 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: White highlighted appearance for icons in NSSegmentedCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: White highlighted appearance for icons in NSSegmentedCell


  • Subject: Re: White highlighted appearance for icons in NSSegmentedCell
  • From: Benjamin Stiglitz <email@hidden>
  • Date: Wed, 20 Feb 2008 09:30:50 -0800

I have a segmented control in my app that behaves like Finder's View control in its toolbar. I'd like each icon in the control to change to white when it's selected. Is there a way to do this without subclassing or changing segment images manually?

If you use a template image, everything should be automatic:

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSImage_Class/Reference/Reference.html#/ /apple_ref/occ/instm/NSImage/setTemplate:

-Ben
_______________________________________________

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: White highlighted appearance for icons in NSSegmentedCell
      • From: Ben Kazez <email@hidden>
References: 
 >White highlighted appearance for icons in NSSegmentedCell (From: Ben Kazez <email@hidden>)

  • Prev by Date: Re: QTMovieLayer?
  • Next by Date: Re: White highlighted appearance for icons in NSSegmentedCell
  • Previous by thread: White highlighted appearance for icons in NSSegmentedCell
  • Next by thread: Re: White highlighted appearance for icons in NSSegmentedCell
  • Index(es):
    • Date
    • Thread