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:25 AM   #6 (permalink)
coondog
Goon (on a good day)
 
Join Date: Apr 2009
Location: California
Posts: 55
Default

Quote:
Originally Posted by eddietr View Post
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.
Thank you for the advice.

Question: Why then wouldn't you simply have an instance of your model in the app delegate and have each controller access it via the delegate pointer?

Chris.
coondog is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,558
Threads: 89,129
Posts: 380,260
Top Poster: BrianSlick (7,103)
Welcome to our newest member, thesooty
Powered by vBadvanced CMPS v3.1.0

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