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

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

Forum Jump

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

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

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