00001 00009 #import "Workshop1.h" 00010 00011 int main (int argc, const char * argv[]) { 00012 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 00013 00014 NSFileHandle *input = [NSFileHandle fileHandleWithStandardInput]; 00015 00016 Workshop1 *ws = [[Workshop1 alloc] initWithFileHandle:input]; 00017 00018 while(!ws.quit) 00019 [[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantPast]]; 00020 00021 [ws release]; 00022 00023 [pool drain]; 00024 return 0; 00025 }