Although that method doesn't mention it, can I call it during data(ofType:),
which is called by those other methods by default (I think)?
Sent from my iPad
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
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)
Please do not pos
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 wrote:
>
> Hi all, I have a table that has records by date. I want to color those
On Feb 22, 2017, at 16:14 , David Delmonte wrote:
>
> I have a table that has records by date. I want to color those entries based
> on the decade.
NSCell-based or NSView-based?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not p
It's cell based!
> On Feb 22, 2017, at 20:38, Quincey Morris
> wrote:
>
>> On Feb 22, 2017, at 16:14 , David Delmonte wrote:
>>
>> I have a table that has records by date. I want to color those entries based
>> on the decade.
>
> NSCell-based or NSView-based?
>
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 wrote:
>
> Well, assuming you have a NSTableCellView, you can set its background color
> using its layer. For example:
>
> cell.la
On Feb 22, 2017, at 17:45 , David Delmonte wrote:
>
> It's cell based!
In that case, you need to implement the delegate method
"tableView(_:willDisplayCell:for:row:)”, which is called once for each cell
that’s redrawn.
In your method, you need to verify that the cell is of the type you expect
I naively thought this was OK, multi-threading wise. It worked before I added
the “canAsynchronusly…” method to say TRUE for my main file type. When that
method is added, the save hangs the program.
> override func data(ofType typeName: String) throws -> Data {
> guard typeName == Na