Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2009, 01:09 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 21
Default Modifying a Tab Bar App to use Core Data

I've followed this Windows-based app (which also uses Navigation and Table View controllers as well) tutorial to create my app. However, I didn't select Use Core Data in the beginning. What steps should I take to change it so my app uses Core Data in storing user-entered entries in the Table View? What files do I need to add?
Apocryphon is offline   Reply With Quote
Old 12-02-2009, 09:21 PM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 18
Default

Quote:
Originally Posted by Apocryphon View Post
I've followed this Windows-based app (which also uses Navigation and Table View controllers as well) tutorial to create my app. However, I didn't select Use Core Data in the beginning. What steps should I take to change it so my app uses Core Data in storing user-entered entries in the Table View? What files do I need to add?
Make a new project that uses core data and copy the appDelegate files into your project. Otherwise, select a windows-based app and check the use core data for storage option. For every view where you need your managedObjectContext, write this in under the viewDidLoad method:

YourAppDelegate *appDelegate = (YourAppDelegate *)[[UIApplicaton sharedApplication] delegate];
self.managedObjectContext = appDelegate.managedObjectContext;

if you need help with core data, read these tutorials here: iPhone Core Data Tutorial Part 1 | Bukisa.com
edward is offline   Reply With Quote
Reply

Bookmarks

Tags
adding core data, core data, tab bar application, window application

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 243
17 members and 226 guests
ADY, Alsahir, Dani77, Desert Diva, Duncan C, F_Bryant, Grinarn, HemiMG, Herbie, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,761
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:43 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0