| 1 |
/* |
| 2 |
Project: Ycode |
| 3 |
|
| 4 |
Author: Gregory John Casamento,,, |
| 5 |
|
| 6 |
Created: 2017-08-15 03:31:31 -0400 by heron |
| 7 |
|
| 8 |
Application Controller |
| 9 |
*/ |
| 10 |
|
| 11 |
#import "AppController.h" |
| 12 |
|
| 13 |
@implementation AppController |
| 14 |
|
| 15 |
+ (void) initialize |
| 16 |
{ |
| 17 |
NSMutableDictionary *defaults = [NSMutableDictionary dictionary]; |
| 18 |
|
| 19 |
/* |
| 20 |
* Register your app's defaults here by adding objects to the |
| 21 |
* dictionary, eg |
| 22 |
* |
| 23 |
* [defaults setObject:anObject forKey:keyForThatObject]; |
| 24 |
* |
| 25 |
*/ |
| 26 |
|
| 27 |
[[NSUserDefaults standardUserDefaults] registerDefaults: defaults]; |
| 28 |
[[NSUserDefaults standardUserDefaults] synchronize]; |
| 29 |
} |
| 30 |
|
| 31 |
- (id) init |
| 32 |
{ |
| 33 |
if ((self = [super init])) |
| 34 |
{ |
| 35 |
} |
| 36 |
return self; |
| 37 |
} |
| 38 |
|
| 39 |
- (void) dealloc |
| 40 |
{ |
| 41 |
[super dealloc]; |
| 42 |
} |
| 43 |
|
| 44 |
- (void) awakeFromNib |
| 45 |
{ |
| 46 |
} |
| 47 |
|
| 48 |
- (void) applicationDidFinishLaunching: (NSNotification *)aNotif |
| 49 |
{ |
| 50 |
// Uncomment if your application is Renaissance-based |
| 51 |
// [NSBundle loadGSMarkupNamed: @"Main" owner: self]; |
| 52 |
} |
| 53 |
|
| 54 |
- (BOOL) applicationShouldTerminate: (id)sender |
| 55 |
{ |
| 56 |
return YES; |
| 57 |
} |
| 58 |
|
| 59 |
- (void) applicationWillTerminate: (NSNotification *)aNotif |
| 60 |
{ |
| 61 |
} |
| 62 |
|
| 63 |
- (BOOL) application: (NSApplication *)application |
| 64 |
openFile: (NSString *)fileName |
| 65 |
{ |
| 66 |
return NO; |
| 67 |
} |
| 68 |
|
| 69 |
- (void) showPrefPanel: (id)sender |
| 70 |
{ |
| 71 |
} |
| 72 |
|
| 73 |
- (IBAction) openProject: (id)sender |
| 74 |
{ |
| 75 |
} |
| 76 |
|
| 77 |
@end |