On 11/02/2010, at 9:45 PM, Gustavo Pizano wrote:

> [(XWSDefaultComponentView *)[component view] setString:[valueString string]];
> 
> 
> But when I display the NSTextViuew all the string its without any style, no 
> bold, no colors no nothing..
> 
> Any ideas what might I being doing wrong?


Sure. You're calling -setString: on the text view with just the string part of 
the attributed string you've carefully built. So all the attributes are getting 
discarded.

You need to do something like this:

[textView setRichText:YES];
[[textView textStorage] setAttributedString:valueString];

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to