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: 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