• 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
Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.


  • Subject: Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.
  • From: John Joyce <email@hidden>
  • Date: Sun, 19 Apr 2009 15:42:09 -0500

Currently, I'm using CFStringTransform to convert Java-based strings files (JBoss .properties files) to something human-readable for verification.
Works brilliantly.
Luckily, these files are short and this function is super fast.
This enables me to naively take all the text of a file provided or copied and pasted and convert it whole in one pass.


My question is, will this function handle AttributedStrings? Presumably not.
Is there a lazy way to handle this ?
(since this function is super good about recognizing and transforming only string ranges that it targets)
or is it going to require me coming up with an equivalently clever way of determining the ranges of attribute runs to make this practical??


I can certainly do it, but I am sure if there is a CF or NS way of it, that it is already more clever than anything I would come up with.
_______________________________________________


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


  • Follow-Ups:
    • Re: Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.
      • From: John Joyce <email@hidden>
    • Re: Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.
      • From: "Adam R. Maxwell" <email@hidden>
  • Prev by Date: Select Object in NSDictionaryController
  • Next by Date: NSSavePanel and file formats
  • Previous by thread: Re: Select Object in NSDictionaryController
  • Next by thread: Re: Using CFStringTransform with Attributed strings or runs, maintaining the styling of the Attributes in transformed results.
  • Index(es):
    • Date
    • Thread