Re: Advice on using NSCell
Re: Advice on using NSCell
- Subject: Re: Advice on using NSCell
- From: James Bucanek <email@hidden>
- Date: Fri, 3 Mar 2006 17:39:03 -0700
Corbin Dunn wrote on Friday, March 3, 2006:
>You may simply want to build this ability into your regular formatter.
>Have a flag that indicates if it should use the grey color, or not,
>and use it. Then, in willDisplayCell, set that flag for the formatter
>on the cell to be YES or NO, depending on how it should be...
I really don't. I reuse these formatters all over the place and I really don't want to polute them all with the same code just so I can use them in this one table.
I already wrote my "filter" formatter and it works great! I did, approximately, what you suggested. My NSTableView intercepts willDisplayCell, determines how the row should be colored, then leaves a property set that my new formatter queries.
Thanks to everyone for the feedback.
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden