• 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: CoreData, SQLite and GUID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData, SQLite and GUID


  • Subject: Re: CoreData, SQLite and GUID
  • From: "Michael Ash" <email@hidden>
  • Date: Thu, 28 Aug 2008 11:47:42 -0400

On Wed, Aug 27, 2008 at 1:30 PM, mmalc crawford <email@hidden> wrote:
>
> On Aug 27, 2008, at 9:33 AM, Michael Ash wrote:
>
>> On Wed, Aug 27, 2008 at 5:30 AM, Amy Heavey <email@hidden>
>> wrote:
>>>
>>> I use an application that I believe is written using CoreData. It is
>>> currently quite tedious to enter data into this application, and the data
>>> I
>>> need entering is already in a mysql database anyway. I'd like to be able
>>> to
>>> insert this data directly into the SQLite database the application uses.
>>
>> Nothing prevents you from programmatically manipulating your CoreData
>> store. CoreData is not a GUI-only technology. Get your data into some
>> format that your CoreData app can read, and write some code to blast
>> it into your store. This is much more foolproof, and probably easier,
>> than trying to manipulate the SQLite database directly.
>>
> To take that a step further, in principle there shouldn't be any need to
> create an intermediate format -- you should be able to write a utility (with
> or without a GUI) that reads the data from the MySQL database using its
> native library and create and store managed objects directly.  See
> <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdImporting.html>
> for hints as to how to do this efficiently.

True enough. I was thinking of an intermediate format as being the
simpler approach, as I would personally be more comfortable doing that
(having never used MySQL from ObjC but being reasonably familiar with
using it from the more traditional languages). But you're exactly
right that you could do it all in a single program instead.

Mike
_______________________________________________

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: 
 >CoreData, SQLite and GUID (From: Amy Heavey <email@hidden>)
 >Re: CoreData, SQLite and GUID (From: "Michael Ash" <email@hidden>)
 >Re: CoreData, SQLite and GUID (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: CFBundleIconFile: heiß or hot?
  • Next by Date: Re: CFBundleIconFile: heiß or hot?
  • Previous by thread: Re: CoreData, SQLite and GUID
  • Next by thread: Crash in garbage collection, NSOpenPanel
  • Index(es):
    • Date
    • Thread