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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-19-2010, 10:55 AM   #1 (permalink)
j3rm
Registered Member
 
Join Date: Jan 2010
Location: Baton Rouge, LA
Posts: 131
j3rm is on a distinguished road
Default CoreData TabBar Multiple ViewController that need persistentStoreCoordinator

I'm working on a CoreData app that has a tab bar, each item opens a ViewController that uses the coreData.. I have looked at the recipes app and its only got one TabBar Item/viewController that uses the CoreData so its a dead end for this question..

What is the proper way to set the persistentStoreCoordinator on the other views. Based on the recipes app, in you MainappDelegate you create the ViewController and set the persistentStoreCoordinator, then link this in the NIB to the TabBarItem's child navigation controller. So what if you have more than one tabbar that wants to use CoreData, do you create another outlet in the MainAppDelegate, and link it in the Nib to the next NavigationContoller/ViewContoller?

I know I sound like i just answered my own question but is this the right way to do this? I guess the whole linking and Nibs is just so silly to me.
Is there a way I can write some code to do this?
j3rm is offline   Reply With Quote
 

» Advertisements
» Online Users: 434
16 members and 418 guests
acegames, baja_yu, Bobarino, David-T, djbrooks111, esoteric, HemiMG, ilmman, inkcpp, jimmyon122, kilobytedump, minglei, Nuncha, PowerGoofy, taewhan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,433
Threads: 94,026
Posts: 402,589
Top Poster: BrianSlick (7,978)
Welcome to our newest member, caraldo32
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:43 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.