Re: Core Data Large Text Storage
Re: Core Data Large Text Storage
- Subject: Re: Core Data Large Text Storage
- From: "I. Savant" <email@hidden>
- Date: Thu, 23 Aug 2007 10:24:16 -0400
On 8/23/07, Michael G Burns <email@hidden> wrote:
> I'm developing a core data app that needs to save a potentially large amount of user provided text (the text will be code for a custom scripting language I've been working on). What is the best method for this type of thing? I'm fairly new to core data, but I assume that storing a thousand lines of text as a NSString is a bad idea....the most logical approach to me seems to be NSData.
Well, you could compress / decompress the data by using delayed accessors:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdNSAttributes.html
There's code on cocoadev.com (NSData category) for
compression/decompression in a couple of formats. Put two and two
together and you've got a pretty good solution, IMO.
--
I.S.
_______________________________________________
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