The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-13-2008, 12:29 PM
Livin the iPhone Life
 
Join Date: Dec 2007
Posts: 1,439
Thanks: 15
Thanked 182 Times in 173 Posts
Why Controllers?

hi there,
I'm new to iPhone developing, I started when the official SDK was released. So since I was doing PHP, a little delphi and very little c# before I read a lot of stuff in the ADC about objective-C and cocoa and iPhone programming.
The language is pretty easy and intuative and I think I'm catching on pretty fast, although the massive number of existing classes is still hard to overview.

however, there is one thing I simply do not get: Why do controller classes exists?
If I want to create a Toolbar, why can't I just create a UIToolbar object but I have to create a UIToolbarController object and use that?

Same thing for views: Whats the point of UIViewController Objects? UIView objects are the actual views, why do I need the controller class?

I'm really having trouble with this. I know there has to be some sense behind this, I'm just not seeing it. maybe someone can help me out here?

thanks :-)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 03-13-2008, 05:55 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,231
Thanks: 45
Thanked 202 Times in 162 Posts

If you are familiar with later versions of Delphi, I would ask Why Actions and ActionLists?

Controllers are similar in some ways - they provide a separation between how the program responds to user input and how the program visually represents model data.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to NetMage For This Useful Post:
BlackWolf (03-14-2008)
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

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



Go to Top
ModMyI

All times are GMT -6. The time now is 10:23 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top