mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 14:49:22 +00:00
Refacoted window and view controller to use windowNibName and nibName. Fixes #164
This commit is contained in:
@@ -23,11 +23,15 @@
|
||||
static MPOverlayWindowController *sharedInstance;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
sharedInstance = [[MPOverlayWindowController alloc] initWithWindowNibName:@"OverlayWindow"];
|
||||
sharedInstance = [[MPOverlayWindowController alloc] initWithWindow:nil];
|
||||
});
|
||||
return sharedInstance;
|
||||
}
|
||||
|
||||
- (NSString *)windowNibName {
|
||||
return @"OverlayWindow";
|
||||
}
|
||||
|
||||
- (id)initWithWindow:(NSWindow *)window {
|
||||
self = [super initWithWindow:window];
|
||||
if (self) {
|
||||
|
||||
Reference in New Issue
Block a user