• 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: Inverted images in selected segmented control segment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inverted images in selected segmented control segment


  • Subject: Re: Inverted images in selected segmented control segment
  • From: "I. Savant" <email@hidden>
  • Date: Sun, 9 Mar 2008 16:23:54 -0400

If I use a rounded textured segmented control (the type finder uses in its toolbar of the windows to switch between column, browser view etc.) and fill a segment with one of the new template images like NSListViewTemplate, then when that segment is selected the image is nicely inverted. However if I fill it with one of my own icons (a transparent tiff file) this doesn't happen. I couldn't find a place to specify an alternate image, does the image needs to have a certain type/criteria to get this behaviour? I couldn't find the actual location of the file that is referenced from NSListViewTemplate on my disk so I could inspect it.

Have you read the documentation regarding template images? The file name needs to end in the word "Template" to be automatically recognized as such or you need to implicitly tell your NSImage instance that it's a template.


--
I.S.


_______________________________________________

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: 
 >Inverted images in selected segmented control segment (From: Alexander Griekspoor <email@hidden>)

  • Prev by Date: NSURLDownload and userInfo
  • Next by Date: Displaying at appropriate time after text layout...?
  • Previous by thread: Inverted images in selected segmented control segment
  • Next by thread: Viability of OSADictionaryView and OSADictionaryController.
  • Index(es):
    • Date
    • Thread