• 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: Image Type for Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Type for Button


  • Subject: Re: Image Type for Button
  • From: Ken Thomases <email@hidden>
  • Date: Sat, 15 Jan 2011 21:15:59 -0600

On Jan 15, 2011, at 8:13 PM, John Joyce wrote:

> Cannot seem to find this in the HIG.
> What type of image would give the inverted look of the built in media types (NSQuicklookTemplate for example) when in a Textured Square Button or Segmented control?
>
> The images appear black with a clear alpha in Interface Builder.
>
> I've tried png, tiff, pdf.
> Tried each type with clear alpha background, with black on white, vice versa.
> No luck.

You need to tell the framework that the is image a template image.  See -[NSImage setTemplate:].

The file format doesn't matter.

Cheers,
Ken

_______________________________________________

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: Image Type for Button
      • From: Ken Ferry <email@hidden>
References: 
 >Image Type for Button (From: John Joyce <email@hidden>)

  • Prev by Date: Image Type for Button
  • Next by Date: Re: Image Type for Button
  • Previous by thread: Image Type for Button
  • Next by thread: Re: Image Type for Button
  • Index(es):
    • Date
    • Thread