Re: White highlighted appearance for icons in NSSegmentedCell
Re: White highlighted appearance for icons in NSSegmentedCell
- Subject: Re: White highlighted appearance for icons in NSSegmentedCell
- From: Ben Kazez <email@hidden>
- Date: Wed, 20 Feb 2008 11:32:52 -0600
On Feb 20, 2008, at 11:30 AM, Benjamin Stiglitz wrote:
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:
Unfortunately this code needs to run on Tiger.
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