• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSAttributedString: lossy attachments when serializing/archiving?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSAttributedString: lossy attachments when serializing/archiving? (From: Jim Correia <email@hidden>)
 >Re: NSAttributedString: lossy attachments when serializing/archiving? (From: Jim Correia <email@hidden>)
 >Re: NSAttributedString: lossy attachments when serializing/archiving? (From: Douglas Davidson <email@hidden>)
 >Re: NSAttributedString: lossy attachments when serializing/archiving? (From: Jim Correia <email@hidden>)
 >Re: NSAttributedString: lossy attachments when serializing/archiving? (From: Douglas Davidson <email@hidden>)
 >Re: NSAttributedString: lossy attachments when serializing/archiving? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: NSAttributedString: lossy attachments when serializing/archiving?
  • Next by Date: Re: Solutions for "mocking" out NSUserDefaults?
  • Previous by thread: Re: NSAttributedString: lossy attachments when serializing/archiving?
  • Next by thread: Saving the text selection with master/detail view and bindings
  • Index(es):
    • Date
    • Thread