apps-gorm/Tools/gormtool/AppDelegate.m

54 lines
1,011 B
Mathematica
Raw Normal View History

2023-06-09 03:00:14 +00:00
#import <Foundation/NSDictionary.h>
2023-06-05 08:36:11 +00:00
#import <Foundation/NSNotification.h>
#import <Foundation/NSProcessInfo.h>
2023-06-09 03:00:14 +00:00
#import <GNUstepGUI/GSNibLoading.h>
#import "AppDelegate.h"
@implementation AppDelegate
2023-06-05 08:36:11 +00:00
2023-06-09 03:00:14 +00:00
- (NSDictionary *) buildDictionary
{
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
NSArray *keys = [dict allKeys];
/*
FOR_IN(NSString*, k, keys)
{
}
END_FOR_IN(keys);
*/
return dict;
}
- (void) process
{
2023-06-09 03:00:14 +00:00
NSDictionary *args = [self buildDictionary];
[NSClassSwapper setIsInInterfaceBuilder: YES];
2023-06-09 03:00:14 +00:00
NSLog(@"Processing... %@", args);
[NSClassSwapper setIsInInterfaceBuilder: NO];
}
2023-06-05 08:36:11 +00:00
- (void) applicationDidFinishLaunching: (NSNotification *)n
{
GormDocumentController *dc = [GormDocumentController sharedDocumentController];
puts("== gormtool");
NSLog(@"processInfo: %@", [NSProcessInfo processInfo]);
2023-06-05 09:53:13 +00:00
[self process];
[NSApp terminate: nil];
2023-06-05 08:36:11 +00:00
}
2023-06-12 06:05:53 +00:00
- (void) applicationWillTerminate: (NSNotification *)n
{
puts("== finished...");
}
@end