• 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: How do I populate Tiger's Core Data via NSSQLiteStoreType; programatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How do I populate Tiger's Core Data via NSSQLiteStoreType; programatically? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Should I observe every object in my view, or just the visible ones?
  • Next by Date: Re: Should I observe every object in my view, or just the visible ones?
  • Previous by thread: How do I populate Tiger's Core Data via NSSQLiteStoreType; programatically?
  • Next by thread: Should I observe every object in my view, or just the visible ones?
  • Index(es):
    • Date
    • Thread