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 <saa...@saagarjha.com> 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 <ddelmo...@mac.com 
>> <mailto:ddelmo...@mac.com>> 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 (Cocoa-dev@lists.apple.com 
>> <mailto:Cocoa-dev@lists.apple.com>)
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/saagar%40saagarjha.com 
>> <https://lists.apple.com/mailman/options/cocoa-dev/saagar%40saagarjha.com>
>> 
>> This email sent to saa...@saagarjha.com
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to