• 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: Is it possible to set an NSTableView cell background color?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to set an NSTableView cell background color?


  • Subject: Re: Is it possible to set an NSTableView cell background color?
  • From: David Delmonte <email@hidden>
  • Date: Wed, 22 Feb 2017 21:27:39 -0500

I tried you solution but it doesn’t color the cell. Scratching my head some more.. I’ll probably ask on Stack Overflow.


> On Feb 22, 2017, at 8:37 PM, Saagar Jha <email@hidden> wrote:
>
> Well, assuming you have a NSTableCellView, you can set its background color using its layer. For example:
>
> cell.layer.backgroundColor = NSColor.black.cgColor
>
> Saagar Jha
>
>> On Feb 22, 2017, at 16:14, David Delmonte <email@hidden <mailto:email@hidden>> wrote:
>>
>> Hi all, I have a table that has records by date. I want to color those entries based on the decade.
>>
>> I cannot seem to find a way to do this.
>>
>> Any help would be appreciated.
>>
>> David
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden <mailto: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 <http://lists.apple.com/>
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>

_______________________________________________

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: Is it possible to set an NSTableView cell background color?
      • From: corbin dunn <email@hidden>
References: 
 >Is it possible to set an NSTableView cell background color? (From: David Delmonte <email@hidden>)
 >Re: Is it possible to set an NSTableView cell background color? (From: Saagar Jha <email@hidden>)

  • Prev by Date: Re: Is it possible to set an NSTableView cell background color?
  • Next by Date: Re: Is it possible to set an NSTableView cell background color?
  • Previous by thread: Re: Is it possible to set an NSTableView cell background color?
  • Next by thread: Re: Is it possible to set an NSTableView cell background color?
  • Index(es):
    • Date
    • Thread