Stanford iPhone Development – Assignment 1

Apple Logo

On April 1, Stanford started a class, cs193p, which was added to iTunes U for free. This class, Cocoa Programming, is an introductory class to programming with Cocoa for the Mac and iPhone, iPod Touch.

I meant to start this class and keep up with it and try to get the assignments done when the real students were supposed to.  However, that quickly dwindeled as I quickly found out how long it’s been since I’ve programmed.  On top of my extended time from real programming, I’d never programmed in a language like this.  This is programming using Objective-C.  My worst area of programming has always been object-oriented programming.  I just have never been able to wrap my head around it.

Anyway, tonight I FINALLY finished the first assignments and am posting the results below.  Enjoy the childlike wonder when I finally saw it producing the output in the assignment directions.

Slider Test (in-class demo)

Slider Test (in-class demo)

Assignment 1a output

Assignment 1a output

Assignment 1b Output:
5/1/09 12:33:20 AM Assignment 1B[15472] PrintPathInfo Method
5/1/09 12:33:20 AM Assignment 1B[15472] My home folder is at '/Users/keith'
5/1/09 12:33:20 AM Assignment 1B[15472] The path can be exploded to: /
5/1/09 12:33:20 AM Assignment 1B[15472] The path can be exploded to: Users
5/1/09 12:33:20 AM Assignment 1B[15472] The path can be exploded to: keith
5/1/09 12:33:20 AM Assignment 1B[15472] PrintProcessInfo Method
5/1/09 12:33:20 AM Assignment 1B[15472] Process Name: 'Assignment 1B' Process ID: '15472'
5/1/09 12:33:20 AM Assignment 1B[15472] PrintBookmarkInfo Method
5/1/09 12:33:20 AM Assignment 1B[15472] Key: 'Stanford on iTunes U' URL: 'http://itunes.stanford.edu'
5/1/09 12:33:20 AM Assignment 1B[15472] Key: 'Stanford University' URL: 'http://www.stanford.edu'
5/1/09 12:33:20 AM Assignment 1B[15472] Key: 'Stanford Mall' URL: 'http://stanfordshop.com'
5/1/09 12:33:20 AM Assignment 1B[15472] PrintIntrospectionInfo Method
5/1/09 12:33:20 AM Assignment 1B[15472] Class name: NSCFString
5/1/09 12:33:20 AM Assignment 1B[15472] Is Member of NSString: NO
5/1/09 12:33:20 AM Assignment 1B[15472] Is Kind of NSString: YES
5/1/09 12:33:20 AM Assignment 1B[15472] Responds to lowercaseString: YES
5/1/09 12:33:20 AM Assignment 1B[15472] lowercaseString is: assignment 1b
5/1/09 12:33:20 AM Assignment 1B[15472] Class name: NSCFDictionary
5/1/09 12:33:20 AM Assignment 1B[15472] Is Member of NSString: NO
5/1/09 12:33:20 AM Assignment 1B[15472] Is Kind of NSString: NO
5/1/09 12:33:20 AM Assignment 1B[15472] Responds to lowercaseString: NO
5/1/09 12:33:20 AM Assignment 1B[15472] Class name: NSPathStore2
5/1/09 12:33:20 AM Assignment 1B[15472] Is Member of NSString: NO
5/1/09 12:33:20 AM Assignment 1B[15472] Is Kind of NSString: YES
5/1/09 12:33:20 AM Assignment 1B[15472] Responds to lowercaseString: YES
5/1/09 12:33:20 AM Assignment 1B[15472] lowercaseString is: /users/keith
5/1/09 12:33:20 AM Assignment 1B[15472] Class name: NSCFString
5/1/09 12:33:20 AM Assignment 1B[15472] Is Member of NSString: NO
5/1/09 12:33:20 AM Assignment 1B[15472] Is Kind of NSString: YES
5/1/09 12:33:20 AM Assignment 1B[15472] Responds to lowercaseString: YES
5/1/09 12:33:20 AM Assignment 1B[15472] lowercaseString is: http://apple.com

2 thoughts on “Stanford iPhone Development – Assignment 1

Leave a Reply

Your email address will not be published. Required fields are marked *