• 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: Template Images in Table Cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Template Images in Table Cells


  • Subject: Re: Template Images in Table Cells
  • From: Lee Ann Rucker <email@hidden>
  • Date: Wed, 28 Dec 2011 03:19:09 -0800 (PST)

>  I'm currently drawing the image in my custom cell using [image drawInRect:....], the image is a proper template image (the property is YES etc), but it's still just a grayscale image.

You have to let the cell draw the image. [NSImage drawInRect:...] doesn't change the image and whatever NSButtonCell does isn't public.

If that's not feasible, you can make a temporary NSButtonCell and use it to draw into another image that you can then use where you need it. rdar://9643738 requested an easy way to do that and was marked as a duplicate of 8067825.
_______________________________________________

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: Template Images in Table Cells
      • From: Seth Willits <email@hidden>
References: 
 >Template Images in Table Cells (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Template Images in Table Cells
  • Next by Date: Re: Storyboard SplitViewController example
  • Previous by thread: Re: Template Images in Table Cells
  • Next by thread: Re: Template Images in Table Cells
  • Index(es):
    • Date
    • Thread