Saving NSAttributedString to a File
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