In Mac OS X, there is AppKit addition which supports reading and writing of NSAttributedString as RTF format.
Equivalent in iOS? Should I make my own?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you just want to save the string to the disk? I would use NSCoding for that.
To write an object to a file:
To read an object from a file:
You can do this with any object conforming to “NSCoding”, and it’s fairly easy to add support for NSCoding to your own classes. More information can be found at:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Archiving/Archiving.html%23//apple_ref/doc/uid/10000047-SW1