• 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: Exporting and Importing CoreData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exporting and Importing CoreData


  • Subject: Re: Exporting and Importing CoreData
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 24 Mar 2011 08:24:08 -0700

On Wed, Mar 23, 2011 at 4:38 PM, WT <email@hidden> wrote:
> How about using a property list file instead? Easier to import and export, and can be edited with tools such as Property List Editor, though your users might not know how to use it, or even have it.

I'd recommend *not* going the property list route. Property lists have
a very simple internal structure that makes it difficult to express
things like references to other objects. They're also pretty slow,
particularly the XML flavor.

Also, don't use NSKeyedArchiver. That ties your on-disk representation
to whatever class hierarchy was used to produce that file.

Using a custom XML format is definitely the way to go, especially if
you publish a DTD. It makes it easy for others to import your file or
otherwise manipulate it using the rich set of XML tools on the market,
including XSLT. A custom format means you can be much more selective
in the amount of processing you perform on input, speeding up your
import process.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: Exporting and Importing CoreData
      • From: Siegfried <email@hidden>
References: 
 >Exporting and Importing CoreData (From: Siegfried <email@hidden>)
 >Re: Exporting and Importing CoreData (From: WT <email@hidden>)

  • Prev by Date: Re: NSMatrix bindings
  • Next by Date: Parsing XML to CoreData
  • Previous by thread: Re: Exporting and Importing CoreData
  • Next by thread: Re: Exporting and Importing CoreData
  • Index(es):
    • Date
    • Thread