Simple NSAttributedString question
Simple NSAttributedString question
- Subject: Simple NSAttributedString question
- From: Christopher Corbell <email@hidden>
- Date: Thu, 24 Jul 2003 09:56:41 -0700
I have a table view that displays text, and would like some items
to be in a different text style (italic).
I'm supposing that the easiest way to do this is to return an
NSAttributedString instead of and NSString from the table source's
tableView:objectValueForTableColumn:row: method.
However I can't see the simplest way to just make an
NSString into an italicized NSAttributedString. I'm supposing
that I'll use -initWithString for the plain-display strings and
-initWithString:attributes: for the italicized string. But what
key-value pair do I use in the attributes dictionary to indicate
that the string should be italic?
Thanks for help,
Christopher
_______________________________________________
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.