OK、ここにあります:
- 私は持っています
NSTextView - 私はそれの
NSMutableAttributedStringコンテンツを取得しています - plistに読み書きできません
Robのコード(NSAttributedStringにカスタム属性を保存する)を使用することで、ある程度の進歩はありましたが(データをディスクに書き込むことができました)、回復できません(= NSKeyedUnarchiverreturn nil)。
エンコーディング:
// where MAS --> NSMutableAttributedString
NSData* stringData = [NSKeyedArchiver archivedDataWithRootObject:MAS];
デコード:
NSMutableAttributedString* mas = (NSMutableAttributedString*)[NSKeyedUnarchiver unarchiveObjectWithData:dat];
何か案は?考えられる回避策(RTFで機能するとは思えないがNSCoder、RTFで機能しない場合でも)は大歓迎です。