Lecture 06_0

Lecture 06_0 - CS193p Spring 2010 Wednesday, April 14, 2010...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS193p Spring 2010 Wednesday, April 14, 2010 Announcements Pauls OfFce Hours E-mail is best way to get help Or in this room before and after Mondays class Sonalis OfFce Hours Changed Again Tuesday 10am to noon Thursday 10am to noon Andreas Taking Over Sonalis riday Time Monday 6pm to 8pm riday 11am to 1pm Wednesday, April 14, 2010 Homework Submission Problems Disk space was full, so half the class could not submit. Make sure you delete your build directory before submitting. Assignment 2 deadline moved to tonight at 11:59pm. If it still fails, you can submit by e-mail this week. Try to Fnish your Homework on Monday There is no new information for homework in Mondays lectures In fact, Monday is moving on to the next thing day Lots of last minute help on Monday (and now Tuesday morning) Not so Tuesday night Dont be afraid to use e-mail to get help as well (but dont depend on getting a response to something sent Tuesday night on Tuesday). Wednesday, April 14, 2010 Communication E-mail Questions are best sent to cs193p@cs.stanford.edu Sending directly to instructor or TAs risks slow response. Web Site Very Important! http://cs193p.stanford.edu All lectures, assignments, code, etc. will be there. This site will be your best friend when it comes to getting info. Wednesday, April 14, 2010 Todays Topics Under the Hood of View-based Application Application Lifecycle View Controller Lifecycle UINavigationController Demo Continuation Wednesday, April 14, 2010 main() Like any C application, your app starts here Heres the code from main.m (found in Other Sources folder in Xcode window): #import <UIKit/UIKit.h> int main(int argc, char *argv) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; } Wednesday, April 14, 2010 #import <UIKit/UIKit.h> int main(int argc, char *argv) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; } main() UIApplicationMain() creates a UIApplication object (despite return value, it never returns). The third argument is the name of the class of your UIApplication (nil is the same as @UIApplication ) The fourth argument is the name of the class which will be your UIApplication s delegate ( nil means none, but its going to get set via the applications MainWindow.xib Fle--next slide). Well talk about NSAutoreleasePool later (the one above does nothing). Wednesday, April 14, 2010 UIApplication What is this application object you speak of? It is a shared object (singleton)....
View Full Document

Page1 / 40

Lecture 06_0 - CS193p Spring 2010 Wednesday, April 14, 2010...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online