• 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
Attributed strings and custom attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attributed strings and custom attributes


  • Subject: Attributed strings and custom attributes
  • From: Jeremy Dronfield <email@hidden>
  • Date: Thu, 20 Jul 2006 13:56:37 +0100

Has anyone come up with a way of getting custom attributes on an attributed string to save?

I'm using -[NSAttributedString RTFDFileWrapperFromRange:documentAttributes:] to save the contents of a text view containing text with custom attributes. (The value of the custom attribute type is an NSDictionary containing metadata. The metadata is related to an NSTextAttachment which is added to the same piece of text as the custom attribute.) When the file is reloaded into the text view, my custom attributes have disappeared. A trawl of the archives suggests that this has been a perennial problem, but offers no solutions other than archiving, which is of no use to me in this situation.

Regards,
Jeremy
_______________________________________________
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


  • Follow-Ups:
    • Re: Attributed strings and custom attributes
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: nib example
  • Next by Date: MOC & Different objects
  • Previous by thread: Re: nib example
  • Next by thread: Re: Attributed strings and custom attributes
  • Index(es):
    • Date
    • Thread