Re: multi coloured string
Re: multi coloured string
- Subject: Re: multi coloured string
- From: "I. Savant" <email@hidden>
- Date: Wed, 7 Nov 2007 16:53:56 -0500
> I am currently combining several strings into one string using
> -stringByAppendingString- and then converting this string into
> AttributedString for output -
>
> but each String has a distinct colour (user defined) which the
> NSAttributedString object does not recognize - it just colours the whole
> concatenated string the same colour based on the value it grabs from
> NSDictionary
-stringByAppendingString: returns an NSString. How do you think your
attributed string's attribute runs would be affected by this?
> What is the best way to output a concatenated, multicolored string ?
The best way? Dunno for sure, but the easy way: Create an
NSMutableAttributedString and use -appendAttributedString: ...
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden