Hello.Thursday, October 20, 11
Thank youThursday, October 20, 11
So you wanna build                           iPhone & iPad apps?Thursday, October 20, 11
Thursday, October 20, 11
iOS,                           Cocoa,                           Cocoa Touch,                           Objective-C,       ...
iOSThursday, October 20, 11
Cocoa                           - The framework that powers                           Mac OS X desktop appsThursday, Octob...
Cocoa Touch                           - The framework that powers iOS apps                           - A feature-set to su...
Objective-C                           - The programming language                           powering the Apple frameworks. ...
Thursday, October 20, 11
Hello, Objective-C!Thursday, October 20, 11
It’s object-oriented (OO)                           ... and it’s super-good at it.Thursday, October 20, 11
Direct association                                                             Indirect association                       ...
Objective-C vs ...Thursday, October 20, 11
JavaScript            var firstName = “Ben”;            PHP            $firstName = “Ben”;            Objective-C         ...
JavaScript            function numberOfCars (ownerID, carColor)            {                ...                return tota...
JavaScript            numberOfCars(75, “Orange”);            PHP            $this->numberOfCars(75, “Orange”);            ...
JavaScript            console.log(“The value of x is: ” + x);            PHP            echo “The value of x is: ”.$x;    ...
JavaScript            var car = new Car();            PHP            $car = new Car();            Objective-C            C...
Memory ManagementThursday, October 20, 11
Retain count                     Car *car = [[Car alloc] init];        +1                     [car release];              ...
pauseThursday, October 20, 11
New ProjectThursday, October 20, 11
Cheers again                           chris@skillshare.com                           @chrisboardmanThursday, October 20, 11
Upcoming SlideShare
Loading in...5
×

So You Wanna Build iPhone iPad Apps / Skillshare Class #1

829

Published on

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
829
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

So You Wanna Build iPhone iPad Apps / Skillshare Class #1

  1. 1. Hello.Thursday, October 20, 11
  2. 2. Thank youThursday, October 20, 11
  3. 3. So you wanna build iPhone & iPad apps?Thursday, October 20, 11
  4. 4. Thursday, October 20, 11
  5. 5. iOS, Cocoa, Cocoa Touch, Objective-C, huh?Thursday, October 20, 11
  6. 6. iOSThursday, October 20, 11
  7. 7. Cocoa - The framework that powers Mac OS X desktop appsThursday, October 20, 11
  8. 8. Cocoa Touch - The framework that powers iOS apps - A feature-set to support the mobile OSThursday, October 20, 11
  9. 9. Objective-C - The programming language powering the Apple frameworks. - Its a superset of C, so it’s easy to mix C and C++ into Cocoa applications.Thursday, October 20, 11
  10. 10. Thursday, October 20, 11
  11. 11. Hello, Objective-C!Thursday, October 20, 11
  12. 12. It’s object-oriented (OO) ... and it’s super-good at it.Thursday, October 20, 11
  13. 13. Direct association Indirect association It loves the MVC design pattern Controller Model ViewThursday, October 20, 11
  14. 14. Objective-C vs ...Thursday, October 20, 11
  15. 15. JavaScript var firstName = “Ben”; PHP $firstName = “Ben”; Objective-C NSString *firstName = @“Ben”;Thursday, October 20, 11
  16. 16. JavaScript function numberOfCars (ownerID, carColor) { ... return totalCars; } PHP public function numberOfCars ($ownerID, $carColor) { ... return $totalCars; } Objective-C - (NSInteger *)numberOfCarsOwnedByUser:(NSInteger *)ownerID ofColor:(NSString *)carColor { ... return totalCars; }Thursday, October 20, 11
  17. 17. JavaScript numberOfCars(75, “Orange”); PHP $this->numberOfCars(75, “Orange”); Objective-C [self numberOfCarsOwnedByUser:75 ofColor:@”Orange”];Thursday, October 20, 11
  18. 18. JavaScript console.log(“The value of x is: ” + x); PHP echo “The value of x is: ”.$x; Objective-C NSLog(@”The value of x is %d”, x);Thursday, October 20, 11
  19. 19. JavaScript var car = new Car(); PHP $car = new Car(); Objective-C Car *car = [[Car alloc] init];Thursday, October 20, 11
  20. 20. Memory ManagementThursday, October 20, 11
  21. 21. Retain count Car *car = [[Car alloc] init]; +1 [car release]; 0 [car release]; SH! -1 CRA *new to iOS5 - ARC!Thursday, October 20, 11
  22. 22. pauseThursday, October 20, 11
  23. 23. New ProjectThursday, October 20, 11
  24. 24. Cheers again chris@skillshare.com @chrisboardmanThursday, October 20, 11

×