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 06-28-2009, 11:32 PM   #1 (permalink)
benoitr007
Registered Member
 
Join Date: Jun 2009
Posts: 243
benoitr007 is on a distinguished road
Question Confused about a few things (n00b questions)

Hello everyone,

I'm new to iPhone/object-oriented programming, and after reading/watching multiple tutorials, I still have basic questions while I'm working on my very first application.

1) I have a AppDelegate and a ViewController class... but no View class! I just selected "View-based Application" and it seems to be the default project layout. Why is MainWindow.xib linking to ViewController.xib? Shouldn't ViewController.xib link to a View.xib? I'm asking this because I want to draw stuff on my view, and I read somewhere that I have to put drawing functions in the drawRect: method of the VIEW. Not the view controller. Again please correct me if I'm wrong.

2) Where is the main application code supposed to be? For some reason I started building everything in my view controller class, is this correct or not? It works, but I just ain't sure. The main variables of my program are instance variables of the view controller, the main functions (like load, save, etc.) are its instance methods, etc. The main initialization occurs in the viewDidLoad method. I'm pretty sure it's not the normal way.

Thank you for your help!

Benoit
benoitr007 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,639
Threads: 94,102
Posts: 402,829
Top Poster: BrianSlick (7,990)
Welcome to our newest member, sCarlRodriguezj
Powered by vBadvanced CMPS v3.1.0

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