mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 19:29:22 +00:00
Refacoted window and view controller to use windowNibName and nibName. Fixes #164
This commit is contained in:
@@ -44,12 +44,13 @@ typedef NS_ENUM(NSUInteger, MPContextTab) {
|
||||
|
||||
@implementation MPContextBarViewController
|
||||
|
||||
#pragma mark Livecycle
|
||||
- (instancetype)init {
|
||||
self = [self initWithNibName:@"ContextBar" bundle:nil];
|
||||
return self;
|
||||
#pragma mark Nib handling
|
||||
- (NSString *)nibName {
|
||||
return @"ContextBar";
|
||||
}
|
||||
|
||||
#pragma mark Livecycle
|
||||
|
||||
- (void)dealloc {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user