Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Oct 27, 2009, 11:29 AM   #1
macrumors newbie
Join Date: May 2009
Prefilling Core Data

I've been following Core Data, Part 5: Prefilling Data but I feel like there's something missing.

If you're not familiar, it's basically telling me to create another program that's a db filler with the same xcdatamodel, and use a csv file to fill it up. Then I'm supposed to copy the .sqllite file I created to my original project.

It suggests changing the
NSURL *storeUrl = [NSURL fileURLWithPath:
    [[self applicationDocumentsDirectory]
        stringByAppendingPathComponent: @"Money.sqlite"]];
in the prefilling program to match the sqlite file that my 'real' product should have.

So I let it run in simulator and get a .sqlite file in the ~/Library/Application Support/iPhone Simulator/User/Applications/{appid}/Library

and put it in my "real" project bundle, but it's not reading the file from the bundle. I have a feeling I'm missing something here, like having to copy over that .sqlite file to my new application directory by code or something. Does anyone have any suggestions?
aleclerc is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
core data binding not working Javajax Mac Programming 3 Jul 10, 2011 01:23 PM
Resolved: Struggling with Core Data: Part 2 RonC iPhone/iPad Programming 2 May 27, 2011 01:02 PM
Help Needed - Xcode 4 Options: Use Core Data Include Unit Tests Mitch1984 iPhone/iPad Programming 3 Feb 26, 2011 03:42 PM
core data, data models, saving data liptonlover Mac Programming 7 Jun 17, 2008 09:16 AM
Direction on using Core Data and Data modeling mbabauer Mac Programming 11 Jun 2, 2006 04:52 AM

All times are GMT -5. The time now is 05:18 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC