Re: attributedStringByTrimmingCharactersInSet: method?
Re: attributedStringByTrimmingCharactersInSet: method?
- Subject: Re: attributedStringByTrimmingCharactersInSet: method?
- From: "Adam R. Maxwell" <email@hidden>
- Date: Sun, 23 Jul 2006 07:51:47 -0700
On Jul 23, 2006, at 07:16, Keith Blount wrote:
Thanks for your reply - much appreciated.
I tried your idea, but the trouble with using the
string methods directly, such as in your example, is
that all of the formatting and attributes of the
attributed string get stripped, which is obviously
counter-productive.
Interesting; according to the documentation for -mutableString, that
shouldn't happen, since changes to it are supposed to be tracked by
the attributed string. Poking around in the debugger with a test
project shows that [[NSMutableAttributedString mutableString] class]
returns NSMutableStringProxyForMutableAttributedString, so presumably
this is another toll-free bridging bug.
You can still operate on it with NSMutableString Obj-C methods, which
would avoid the overhead of using [newStr string] in your code.
-- Adam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden