Re: How do I populate Tiger's Core Data via NSSQLiteStoreType; programatically?
Re: How do I populate Tiger's Core Data via NSSQLiteStoreType; programatically?
- Subject: Re: How do I populate Tiger's Core Data via NSSQLiteStoreType; programatically?
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 16 May 2005 12:04:48 -0700
On May 16, 2005, at 11:39 AM, Frederick C. Lee wrote:
Umm, there's a wealth of documentation that addresses these issues:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreData/index.html>
then two tutorials:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
NSPersistentDocumentTutorial/index.html>
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreDataUtilityTutorial/index.html>
To address specific questions:
So I'm getting lost here: How do I programatically populate the
tables of my 'NSManagedObjectContext' {'database'}?
Create instances of NSManaged objects and then save the context. See:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreData/Articles/cdCreateMOs.html>
For establishing relationships (populating a related table), see:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreData/Articles/cdRelationships.html>
P.S. a simple FETCH example would be great, too!
There are examples of fetching at least at:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
NSPersistentDocumentTutorial/04_Department/chapter_5_section_3.html>
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreDataUtilityTutorial/07_Fetch/chapter_8_section_2.html>
and in the on-disk developer examples.
mmalc
_______________________________________________
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