Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rubymotion Introduction

.mateus
November 12, 2012

Rubymotion Introduction

Introduction into Rubymotion,

.mateus

November 12, 2012
Tweet

More Decks by .mateus

Other Decks in Programming

Transcript

  1. About Me Computer Scientists in System Integration Application Development Mateus

    Armando Telecommunications company Montag, 12. November 12
  2. Rubymotion 7 years at Apple as as a senior software

    engineer for iLife and OS X. Creator and maintainer of MacRuby was an active contributor to RubyCocoa and Gnome Laurent Sansonetti Montag, 12. November 12
  3. iOS Development I CAN DEVELOP NATIVE iOS APPS IN RUBY?

    SO , YOU’RE TELLI N G ME Montag, 12. November 12
  4. Ruby vs Objective-C 2.0 NSMutableArray *friends = [@[@”Tom”,@”Tim”,@”Jim” ] mutableCopy];

    friends = [”Tom”,”TIM”,”Jim”] Montag, 12. November 12
  5. Ruby vs Objective-C 2.0 NSDictionary *dict = @{ @"key" :

    @[@”Object”]} dict = { “key” => [“object”]} Montag, 12. November 12
  6. class Person attr_accessor :first_name, :last_name def full_name "#@first_name, #@last_name" end

    end // person.h @interface Person : NSObject @property (nonatomic, copy) NSString *firstName; @property (nonatomic, copy) NSString *lastName; @end // person.m @implementation Person - (NSString *) fullName { return [NSString stringWithFormat:@"%@ %@", [self firstName], [self lastName]]; } @end Ruby vs Objective-C 2.0 Montag, 12. November 12
  7. but.... •Object Literals •ARC •Blocks (closures) •@synthesize by Default [fakeElvis

    doYouKnowTheMuffinMan: theMuffinMan]; Montag, 12. November 12
  8. but.... •Object Literals •ARC •Blocks (closures) •@synthesize by Default [fakeElvis

    doYouKnowTheMuffinMan: theMuffinMan]; dth pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteg Montag, 12. November 12
  9. but.... •Object Literals •ARC •Blocks (closures) •@synthesize by Default [fakeElvis

    doYouKnowTheMuffinMan: theMuffinMan]; rmat bytesPerRow:(NSInteger)rowBytes bitsPerPixel:(NSInteger)pixelBits Montag, 12. November 12
  10. Thanks to GoSquered for the flags https://www.gosquared.com/resources/flag-icons http://www.textfromxcode.com Text from

    Xcode xcode has started sending me text messages. no, i don't know how. DEMO WORKED!!!! Montag, 12. November 12
  11. Thanks to GoSquered for the flags https://www.gosquared.com/resources/flag-icons http://www.textfromxcode.com Text from

    Xcode xcode has started sending me text messages. no, i don't know how. Montag, 12. November 12