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 09-11-2008, 12:03 PM   #32 (permalink)
finalcut
Registered Member
 
Join Date: Sep 2008
Posts: 3
finalcut is on a distinguished road
Default

hi there,
nice tutorial and nice conversations too
So i'm actually new to the iphone sdk and i'm still at the stage of watching vids trying to get the grip of the whole procedure..So i wanted to ask i couple of things that i believe are in context with the thread.
In the case where the app has a lot of views if i get it correctly the pattern is that you have your view class ,the view controller class and the app delegate lies behind of all.It seems to me that the delegate has the role of the main controller ,switching and handling different views. So in the particular example couldn't the delegate just set the text color of the label at the view so that the view wouldn't have to access the delegate..it wouldnt need to be aware of its existence..it would just draw with whatever color value it's variable has..Also instead of the view explicitly calling the delegate method for flipping is there a way to notify the delegate of the event and then the delegate according to it's logic would decide what it should be done?I'm trying to make the analogy from web programming where the view(browser)would call a php file for example(controller) , the controller would then access whatever data it needs and display another view after setting the data this view needs..So i guess my main question is what's the clean way to hand over control to the delegate instead of getting it's singleton instance and explicitly calling a method..
finalcut is offline   Reply With Quote
 

» Advertisements
» Online Users: 574
21 members and 553 guests
2ndSegment, AntiPi, bppnorml13, cgokey, ChrisYates, clarky07, doffing81, G-Power, Kieren Harrold, logan, michaelhansen, Newbie123, Paul Slocum, pipposanta, poke, popsmith, requazaash, revg, Speed, TunaNugget, ziocleto
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,538
Threads: 94,052
Posts: 402,640
Top Poster: BrianSlick (7,979)
Welcome to our newest member, bppnorml13
Powered by vBadvanced CMPS v3.1.0

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