#import #import #import #import #import "AppDelegate.h" @implementation AppDelegate - (NSDictionary *) buildDictionary { NSMutableDictionary *dict = [NSMutableDictionary dictionary]; NSArray *keys = [dict allKeys]; /* FOR_IN(NSString*, k, keys) { } END_FOR_IN(keys); */ return dict; } - (void) process { NSDictionary *args = [self buildDictionary]; [NSClassSwapper setIsInInterfaceBuilder: YES]; NSLog(@"Processing... %@", args); [NSClassSwapper setIsInInterfaceBuilder: NO]; } - (void) applicationDidFinishLaunching: (NSNotification *)n { GormDocumentController *dc = [GormDocumentController sharedDocumentController]; puts("== gormtool"); NSLog(@"processInfo: %@", [NSProcessInfo processInfo]); [self process]; [NSApp terminate: nil]; } - (void) applicationWillTerminate: (NSNotification *)n { puts("== finished..."); } @end