• 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: Core Data Large Text Storage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Core Data Large Text Storage (From: Michael G Burns <email@hidden>)

  • Prev by Date: Re: NSTextFiledCell in NSTableView doesn't truncate text if it contains a NSAttributedString
  • Next by Date: CoreData without bindings
  • Previous by thread: Core Data Large Text Storage
  • Next by thread: CoreData without bindings
  • Index(es):
    • Date
    • Thread