• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: attributedStringByTrimmingCharactersInSet: method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: attributedStringByTrimmingCharactersInSet: method? (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: attributedStringByTrimmingCharactersInSet: method?
  • Next by Date: Sending non-string parameters to an AppleScript
  • Previous by thread: Re: attributedStringByTrimmingCharactersInSet: method?
  • Next by thread: Design patterns
  • Index(es):
    • Date
    • Thread