Skip navigation.
 
mlRe: Changing text color for NSTableView
FROM : Peter
DATE : Tue Nov 19 07:49:44 2002

I was not aware of NSAttributedString, after studying
NSAttributedString, I tried another way and it works too. Instead of
caching NSAttributedString or doing willDisplayCell delegate, I convert
NSString to NSAttributedString for display.

1) change NSString type to NSAttributedString
2) willDisplayCell delegate method
3) convert NSString to NSAttributedString for tableView display

I wonder which one is the best way ?

Peter.

On Tuesday, November 19, 2002, at 02:28  AM, Ondra Cada wrote:

>
> On Monday, Nov 18, 2002, at 17:56 Europe/Prague, Joseph Jones wrote:
>

>> Is it not possible to use an NSAttributedString instead of NSString
>> with the
>> NSForegroundColorAttributeName to change the color?

>
> It is, but unless you cache those attributed strings anyway, the
> delegate method's *MUCH* better.
> ---
> Ondra Cada
> OCSoftware:    <email_removed>              http://www.ocs.cz
> private        <email_removed>            http://www.ocs.cz/oc

_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlChanging text color for NSTableView Peter Nov 18, 12:07
mlRe: Changing text color for NSTableView j o a r Nov 18, 13:14
mlRe: Changing text color for NSTableView Joseph Jones Nov 18, 17:56
mlRe: Changing text color for NSTableView Ondra Cada Nov 18, 19:28
mlRe: Changing text color for NSTableView Peter Nov 19, 07:49
mlRe: Changing text color for NSTableView Ondra Cada Nov 19, 14:21