Re: How do I manually convert NSTextStorage --> NSData object?
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