Separating Attributes from Text in NSTextStorage
Separating Attributes from Text in NSTextStorage
- Subject: Separating Attributes from Text in NSTextStorage
- From: Jonathan Hendry <email@hidden>
- Date: Sat, 24 Jan 2004 03:35:18 -0500
I'd like to be able to save the attributes of an NSTextStorage
separately
from the text the attributes are associated with.
The text would come from large, possibly read-only ascii files. I'd
like to read that into the NSTextStorage, allow the user to modify
various attributes, then save the attributes to a different file,
without duplicating the original text in the attributes file.
Next time the user opens the text file, the attribute file would
be read in and the attributes applied to the text.
Is there a simple way to do this? The AttributedStrings aren't
really set up for this, it seems.
Thanks,
JH
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.