Created
December 10, 2015 12:39
-
-
Save marekjalovec/60dc84835b54fe2da1bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prepare the sleigh | |
Sleigh *sleigh = [[Sleigh alloc] initWithDriver:[Santa sharedSanta]]; | |
NSArray *reindeerNames = [NSArray arrayWithObjects:@"Dasher", @"Dancer", @"Prancer", @"Vixen", @"Comet", @"Cupid", @"Dunder", @"Blixem", @"Rudolph", nil]; | |
for (NSString *reindeerName in reindeerNames) { | |
Reindeer *reindeer = [[Reindeer alloc] initWithName:reindeerName]; | |
[sleigh addReindeer:reindeer]; | |
} | |
[sleigh loadPresents]; | |
// Merry Christmas! | |
[sleigh fly]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment