« Core Data, Part 1: An Introduction | Main | Errors: The model used to open the store is incompatible (and other Core Data errors) »

August 18, 2009

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a010535e1becf970c0120a4e6f6fa970b

Listed below are links to weblogs that reference Core Data, Part 2: The Data Model:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Bob

Hi,

I have a kind of basic question regarding Core Data and SQLite.

When is the SQLite database created by Core Data?

I have completed the Data Model part as per my needs following your tutorial above. I am using the Windows template with the Core Data templates included in the code.

When I build and run shouldn't the SQLite database appear in my resources folder automatically?? Or does it not work like that?

I've been trying to figure out when/how xcode creates the SQLite database and attach it to my resources folder. Can you give me some guidance? I've spent the last few days trying to figure this out reading countless blogs and forums but I can't get the answer I need.

I can't move forward developing my app without this very crucial step.
Please help! Thanks,

Shannon Appelcline

It should be created at run time, and appears out in the directory where your program is dynamically running from (~/Library/Application Support/iPhone Simulator/User/Applications/... when running from the Simulator).

However, worrying about that probably misses out on Core Data's abstraction. Unless you just want to look that your data is being recorded right, you should do all your work through Core Data's functionality.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment