Re: Using Your Own Data Format in Core Data
Re: Using Your Own Data Format in Core Data
- Subject: Re: Using Your Own Data Format in Core Data
- From: Jim Correia <email@hidden>
- Date: Thu, 2 Feb 2006 08:38:21 -0500
On Feb 2, 2006, at 2:47 AM, email@hidden wrote:
I read in the introduction for core data
(http://developer.apple.com/macosx/coredata.html )
the following part:
Using Your Own Data Format
If you already have an existing application format, you can still
use Core Data with it. You will need to read in your file and
create a Core Data object graph. Then, you can exploit all of the
advantages of Core Data, such as the automatic undo/redo support.
So is there a possible way to use an existing mySQL database with
core data ?
Create an in memory store.
Read data from your mySQL database and populate the object graph.
Use CoreData for management. Save the managed object context when
necessary.
React to NSManagedObjectContextDidSaveNotification by writing the
data back to mySQL.
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden