Skip to content

Instantly share code, notes, and snippets.

@goomerko
Created March 22, 2011 16:42
Show Gist options
  • Save goomerko/881536 to your computer and use it in GitHub Desktop.
Save goomerko/881536 to your computer and use it in GitHub Desktop.
#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