Created
May 22, 2009 07:40
-
-
Save akio0911/116002 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
int main() { | |
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; | |
NSMutableArray *array = [NSMutableArray array]; | |
NSLog(@"%@", array); | |
[array addObject:[NSString stringWithString:@"blackColor"]]; | |
NSLog(@"%@", array); | |
[array insertObject:[NSString stringWithString:@"redColor"] atIndex:0]; | |
NSLog(@"%@", array); | |
[array insertObject:[NSString stringWithString:@"blueColor"] atIndex:1]; | |
NSLog(@"%@", array); | |
[array addObject:[NSString stringWithString:@"whiteColor"]]; | |
NSLog(@"%@", array); | |
[array removeObjectsInRange:(NSMakeRange(1, 2))]; | |
NSLog(@"%@", array); | |
[pool release]; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment