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

View Single Post
Old 04-21-2009, 12:10 AM   #5 (permalink)
eddietr
Registered Member
 
Join Date: Apr 2009
Posts: 536
Default

Quote:
Originally Posted by coondog View Post
What I'm hazy about is where to create the instance and initialize it's data if multiple views rely on that object at any given time during the app's lifecycle.
So applicationDidFinishLaunching in your app delegate is a good place to set up any controllers that you want to use. And then have those controllers set up whatever model objects are needed.

And then if you keep references to the controllers in the app delegate, then it's very easy to get those references from any view controller, since a pointer to the app delegate is always easily available.
eddietr is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,688
Threads: 89,160
Posts: 380,406
Top Poster: BrianSlick (7,110)
Welcome to our newest member, mary3chil
Powered by vBadvanced CMPS v3.1.0

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