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

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 27, 2009, 12:29 PM   #1
aleclerc
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
Code:
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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Core Data help. Ernie11 iPhone/iPad Programming 4 May 11, 2014 09:46 PM
Having an issue passing data between views with Core Data. iJustinCabral iPhone/iPad Programming 0 Jul 15, 2013 10:50 PM
Saving data from custom tablecells core data luke3 iPhone/iPad Programming 0 Jul 14, 2012 07:09 PM
Core Data Predicates nashyo iPhone/iPad Programming 0 Jul 11, 2012 01:09 PM
Trouble with Core Data luke3 iPhone/iPad Programming 1 Jul 6, 2012 12:58 AM

Forum Jump

All times are GMT -5. The time now is 11:11 PM.

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

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