FROM : Jeremy Dronfield
DATE : Thu Jul 20 14:56:37 2006
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
DATE : Thu Jul 20 14:56:37 2006
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
| Related mails | Author | Date |
|---|---|---|
| Jeremy Dronfield | Jul 20, 14:56 | |
| Douglas Davidson | Jul 20, 18:53 | |
| Jeremy Dronfield | Jul 20, 19:24 |






Cocoa mail archive

