• 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: Using Your Own Data Format in Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using Your Own Data Format in Core Data (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: How to do multilanguage support
  • Next by Date: Re: Distributed Objects and Retain
  • Previous by thread: Using Your Own Data Format in Core Data
  • Next by thread: drawing/graphing package
  • Index(es):
    • Date
    • Thread