Created
March 22, 2011 16:42
-
-
Save goomerko/881536 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
#import <Foundation/Foundation.h> | |
#import "Possession.h" | |
#import "PossessionController.h" | |
int main (int argc, const char * argv[]) { | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
NSMutableArray *items = [[NSMutableArray alloc] init]; | |
for(int i=0; i<10; i++){ | |
Possession *newPossession = [[Possession alloc] init]; | |
[newPossession randomize]; | |
[items addObject: newPossession]; | |
[newPossession release]; | |
} | |
for(Possession *item in items){ | |
NSLog(@"%@", item); | |
} | |
[items release]; | |
items = nil; | |
[pool drain]; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment