Re: Changing color to text in a tableview
Re: Changing color to text in a tableview
- Subject: Re: Changing color to text in a tableview
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 27 Oct 2003 15:58:18 +0100
Have a look at NSAttributedString.
You can return a NSAttributedString instead of a NSString from your
data source.
On Monday, October 27, 2003, at 03:04 PM, Eivind Andersen wrote:
Hi,
How can I, in an easy way, change the color of the text in a cell (or
a row) in a tableView?
The best way would be if I could go to the datasource, and change the
strings with something like:
NSString * aString;
[aString setColor:[NSColor redColor]];
but infortunally there is no such method...
Is there a similar way this can be done?
Best regards,
Eivind Andersen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.