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 16:56:06 -0800
On Jan 9, 2006, at 4:47 PM, Jim Correia wrote:
Since in my application, the only time there will be an actually
file backing the file wrapper is on the initial drag (since
otherwise it is a serialized representation stored via CoreData),
is it possible to force it to always use the "non-live"
representation for the sake of consistency?
Yes--assign an NSTextAttachmentCell to the text attachment. For
consistency, you can create it with an image representing an icon for
the file type, obtainable from NSWorkspace. I would suggest
assigning the cell to the attachment before it is displayed, so that
the default cell will never end up being created.
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