• 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: Saving AttributedString with Attachments to RTFD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving AttributedString with Attachments to RTFD


  • Subject: Re: Saving AttributedString with Attachments to RTFD
  • From: email@hidden
  • Date: Tue, 8 Apr 2008 11:59:25 +0100

Douglas

Thanks, I did realize my mistake as I remembered that the RTFD is a package and not a file.

Fred

On 7 Apr 2008, at 17:36, Douglas Davidson wrote:

As others have noted, RTFD is a packaged file format, consisting of a directory in the file system containing the underlying RTF and any attachments. There are therefore two representations of RTFD: first, the on-disk format, and second, a serialized format used on the pasteboard. There are therefore two methods for obtaining RTF from an attributed string, -RTFDFromRange:documentAttributes: (for the pasteboard representation, expressed as an NSData), and - RTFDFileWrapperFromRange:documentAttributes: (for the on-disk representation, expressed as an NSFileWrapper). These two methods are conveniences, specialized to the case of RTFD, for the more general methods -dataFromRange:documentAttributes:error: and - fileWrapperFromRange:documentAttributes:error:.

Douglas Davidson






_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Saving AttributedString with Attachments to RTFD (From: email@hidden)
 >Re: Saving AttributedString with Attachments to RTFD (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Returning a value from a function
  • Next by Date: Re: NSUndoManager grouping somewhat broken?
  • Previous by thread: Re: Saving AttributedString with Attachments to RTFD
  • Next by thread: NSVector, CGVector Additions
  • Index(es):
    • Date
    • Thread