• 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: importing sqlite data into a core data "database"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: importing sqlite data into a core data "database"


  • Subject: Re: importing sqlite data into a core data "database"
  • From: Chris Hanson <email@hidden>
  • Date: Sat, 12 Jul 2008 17:27:56 -0700

On Jul 12, 2008, at 4:54 PM, John Velman wrote:

So, being new to Cocoa, XCode, objective-c, How do I get my data into my
new Cocoa / core data "database"?


I can think of two approaches off hand:

2) writing an import routine for my application, using NSTask (?) and
sqlite3.  This would likely only be used once.

3) Write an import routine for your application using the SQLite 3 API in <sqlite3.h>.


Just prepare and step through queries of your old data using the raw SQLite 3 API, and insert new instances of your Core Data entities and set the appropriate properties on them as you go.

  -- Chris

_______________________________________________

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: importing sqlite data into a core data "database"
      • From: John Velman <email@hidden>
References: 
 >importing sqlite data into a core data "database" (From: John Velman <email@hidden>)

  • Prev by Date: Setting Up Socket Streams
  • Next by Date: Re: Setting Up Socket Streams
  • Previous by thread: importing sqlite data into a core data "database"
  • Next by thread: Re: importing sqlite data into a core data "database"
  • Index(es):
    • Date
    • Thread