2023-06-09 03:00:14 +00:00
|
|
|
#import <Foundation/NSDictionary.h>
|
2023-06-05 08:36:11 +00:00
|
|
|
#import <Foundation/NSNotification.h>
|
2023-06-05 09:06:03 +00:00
|
|
|
#import <Foundation/NSProcessInfo.h>
|
2023-06-09 03:00:14 +00:00
|
|
|
|
2023-06-05 09:50:08 +00:00
|
|
|
#import <GNUstepGUI/GSNibLoading.h>
|
2023-06-05 09:06:03 +00:00
|
|
|
|
|
|
|
#import "AppDelegate.h"
|
2023-06-05 01:03:21 +00:00
|
|
|
|
|
|
|
@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;
|
|
|
|
}
|
|
|
|
|
2023-06-05 09:50:08 +00:00
|
|
|
- (void) process
|
|
|
|
{
|
2023-06-09 03:00:14 +00:00
|
|
|
NSDictionary *args = [self buildDictionary];
|
2023-06-05 09:50:08 +00:00
|
|
|
[NSClassSwapper setIsInInterfaceBuilder: YES];
|
|
|
|
|
2023-06-09 03:00:14 +00:00
|
|
|
NSLog(@"Processing... %@", args);
|
2023-06-05 09:50:08 +00:00
|
|
|
|
|
|
|
[NSClassSwapper setIsInInterfaceBuilder: NO];
|
|
|
|
}
|
|
|
|
|
2023-06-05 08:36:11 +00:00
|
|
|
- (void) applicationDidFinishLaunching: (NSNotification *)n
|
|
|
|
{
|
2023-06-27 22:30:04 +00:00
|
|
|
GormDocumentController *dc = [GormDocumentController sharedDocumentController];
|
2023-06-05 09:06:03 +00:00
|
|
|
|
2023-06-27 22:30:04 +00:00
|
|
|
puts("== gormtool");
|
|
|
|
|
2023-06-05 09:06:03 +00:00
|
|
|
NSLog(@"processInfo: %@", [NSProcessInfo processInfo]);
|
2023-06-05 09:53:13 +00:00
|
|
|
[self process];
|
2023-06-27 22:30:04 +00:00
|
|
|
|
2023-06-05 09:06:03 +00:00
|
|
|
[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...");
|
|
|
|
}
|
|
|
|
|
2023-06-05 01:03:21 +00:00
|
|
|
@end
|