• 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: How do I manually convert NSTextStorage --> NSData object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I manually convert NSTextStorage --> NSData object?


  • Subject: Re: How do I manually convert NSTextStorage --> NSData object?
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 28 Dec 2005 16:06:11 -0800


NSTextStorage conforms to NSCoding, so:

NSTextStorage *storage;
NSData *encodedText = [NSArchiver archivedDataWithRootObject:storage];

should do the trick.

-jcr


John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.



_______________________________________________
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: 
 >How do I manually convert NSTextStorage --> NSData object? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: How do I manually convert NSTextStorage --> NSData object?
  • Next by Date: Bezier Paths.
  • Previous by thread: How do I manually convert NSTextStorage --> NSData object?
  • Next by thread: Bezier Paths.
  • Index(es):
    • Date
    • Thread