Lecture 02

Lecture 02 - CS193p Spring 2010 Wednesday, March 31, 2010...

Info iconThis preview shows pages 1–14. 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

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, March 31, 2010 Enrollment Closed You should have received an e-mail It will confrm your grading status (P/NC or not) As usual, we were oversubscribed For grading option Sorry to anyone who didnt get the option they wanted IF you received e-mail, but are not in Axess, do it! ... and an invitation to iPhone Developer Program IF not, e-mail cs193p@cs.stanFord.edu . Wednesday, March 31, 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, March 31, 2010 OfFce Hours Andreas Monday 6pm to 8pm Thursday 6pm to 8pm Gates B26A Bring your Stanford ID card for access to the building Sonali riday 11am to 1pm Thursday 1pm to 3pm Gates B26B Wednesday, March 31, 2010 Todays Topics MVC Calculator Objective-C Declaring and implementing objects Sending messages between objects Interface Builder Wiring up objects to send messages to each other Setting up the properties of objects Xcode Managing all your code Running your application in the simulator Wednesday, March 31, 2010 Our Calculator Model View Controller CalculatorViewController CalculatorBrain UILabel UIButton UIButton UIButton UIButton UIButton UIButton UIButton Wednesday, March 31, 2010 @interface @end Model Header File (public API) Wednesday, March 31, 2010 @interface CalculatorBrain @end Model Header File (public API) Wednesday, March 31, 2010 #import <Foundation/Foundation.h> @interface CalculatorBrain : NSObject @end Model Header File (public API) Wednesday, March 31, 2010 #import <Foundation/Foundation.h> @interface CalculatorBrain : NSObject double operand ; { } @end Model Header File (public API) Wednesday, March 31, 2010 #import <Foundation/Foundation.h> @interface CalculatorBrain : NSObject double operand ; { }- ( void )setOperand:( double )anOperand;- ( double )performOperation:( NSString *)operation; @end Model Header File (public API) Wednesday, March 31, 2010 Specifying void as the return type means that this method returns no value. #import <Foundation/Foundation.h> @interface CalculatorBrain : NSObject double operand ; { }- ( void )setOperand:( double )anOperand;- ( double )performOperation:( NSString *)operation; @end Model Header File (public API) Wednesday, March 31, 2010 #import <Foundation/Foundation.h><Foundation/Foundation....
View Full Document

This note was uploaded on 02/15/2011 for the course CS 193P taught by Professor Evandoll during the Spring '09 term at Stanford.

Page1 / 42

Lecture 02 - CS193p Spring 2010 Wednesday, March 31, 2010...

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

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