• 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
Saving NSAttributedString to a File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Saving NSAttributedString to a File


  • Subject: Saving NSAttributedString to a File
  • From: Charles Jenkins <email@hidden>
  • Date: Fri, 19 Dec 2014 16:39:41 -0500

You can use attributes to hide pretty much whatever information you want in the attributes dictionaries associated with individual characters in an NSMutableAttributedString. For example, if you use named paragraph styles, each character in memory can know which style has been applied to it.

But when it comes time to save to a file format selected from AppKit additions (e.g. RTFFromRange:documentAttributes:), any unusual, application-specific attributes will be lost. There is no built-in file format you can select that will save just any arbitrarily named attribute.

Am I right?

—

Charles

_______________________________________________

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: Saving NSAttributedString to a File
      • From: Quincey Morris <email@hidden>
    • Re: Saving NSAttributedString to a File
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSTextView and Syntax Highlighting
  • Next by Date: Re: Saving NSAttributedString to a File
  • Previous by thread: Stop a scrollview scrolling in one direction
  • Next by thread: Re: Saving NSAttributedString to a File
  • Index(es):
    • Date
    • Thread