public
Description: My solutions for the Stanford assignments - CS1
Homepage: http://www.stanford.edu/class/cs193p/cgi-bin/index.php
Clone URL: git://github.com/fnando/iphone-stanford.git
name age message
file .gitignore Fri May 15 19:12:56 -0700 2009 added lecture 1 assignments; still need to fini... [fnando]
file README.markdown Wed May 20 21:56:51 -0700 2009 Finished Assignment 2A [fnando]
directory assignment-1/ Sun May 24 18:14:43 -0700 2009 Renamed directories [fnando]
directory assignment-2/ Sun May 24 18:14:43 -0700 2009 Renamed directories [fnando]
directory assignment-3/ Mon May 25 17:42:42 -0700 2009 Added dashed line support [fnando]
README.markdown

iPhone Application Development - Stanford Program

NSLog: make sure you use NSString and not C strings.

NSLog(@"Name: %@", @"Nando Vieira"@); // this works
NSLog(@"Name: %@", "Nando Vieira"); // this crashes

Arrays need to end with nil; you can't have nil values except but the last item.

NSArray * letters = [NSArray arrayWithObjects: @"A", @"B", @"C", nil];