Re: NSAttributedString: lossy attachments when serializing/archiving?
Re: NSAttributedString: lossy attachments when serializing/archiving?
- Subject: Re: NSAttributedString: lossy attachments when serializing/archiving?
- From: Douglas Davidson <email@hidden>
- Date: Mon, 9 Jan 2006 17:19:19 -0800
On Jan 9, 2006, at 5:11 PM, Jim Correia wrote:
If I have a custom NSTextAttachmentCell subclass which does handles
a particular file type:
Is this automatically used if I archive the attributed string
with NSKeyedArchiver, then unarchive it?
It doesn't have to be a custom subclass; NSTextAttachmentCell itself
works fine for normal cell behavior like drawing images. If you
explicitly set a cell, instead of allowing NSTextAttachment to create
one automatically, it will be archived with the attachment.
For attributed strings which come from the filesystem or the
pasteboard, I'll have to scan the string and replace the text
attachment cell with my custom class?
Yes.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden