You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.8 KiB
Objective-C
60 lines
1.8 KiB
Objective-C
#import "MainWindowController.h"
|
|
#import "MainViewController.h"
|
|
|
|
@implementation MainWindowController
|
|
|
|
- (id) init {
|
|
id viewController = [[MainViewController alloc] init];
|
|
NSLog(@"[MainWindowController] init: view loaded: %d", [viewController isViewLoaded]);
|
|
|
|
id window = [[NSWindow windowWithContentViewController:viewController] retain];
|
|
NSLog(@"[MainWindowController] window: %@", window);
|
|
NSLog(@"[MainWindowController] init (2): view loaded: %d", [viewController isViewLoaded]);
|
|
return [self initWithWindow:window];
|
|
}
|
|
|
|
- (instancetype) initWithWindow:(NSWindow *)window {
|
|
NSLog(@"[MainWindowController] initWithWindow: %@", window);
|
|
return [super initWithWindow:window];
|
|
}
|
|
|
|
- (instancetype)initWithWindowNibName:(NSString*)windowNibName {
|
|
NSLog(@"[MainWindowController] initWithWindowNibName");
|
|
return [super initWithWindowNibName:windowNibName];
|
|
}
|
|
|
|
- (instancetype)initWithWindowNibName:(NSString*)windowNibName
|
|
owner:(id)owner {
|
|
NSLog(@"[MainWindowController] initWithWindowNibNameOwner");
|
|
return [super initWithWindowNibName:windowNibName];
|
|
}
|
|
|
|
- (instancetype)initWithWindowNibPath:(NSString *)windowNibPath
|
|
owner:(id)owner {
|
|
NSLog(@"[MainWindowController initWithWindowNibPath:owner");
|
|
return [super initWithWindowNibPath:windowNibPath
|
|
owner:owner];
|
|
}
|
|
|
|
- (void) windowWillLoad {
|
|
NSLog(@"[MainWindowController] windowWillLoad");
|
|
return [super windowWillLoad];
|
|
}
|
|
|
|
- (void) windowDidLoad {
|
|
NSLog(@"[MainWindowController] windowDidLoad");
|
|
return [super windowDidLoad];
|
|
}
|
|
|
|
- (void) loadWindow {
|
|
NSLog(@"[MainWindowController] loadWindow");
|
|
return [super loadWindow];
|
|
}
|
|
|
|
- (IBAction) showWindow:(id)sender {
|
|
NSLog(@"[MainWindowController] showWindow");
|
|
return [super showWindow:sender];
|
|
}
|
|
|
|
@end
|