summaryrefslogtreecommitdiffstats
path: root/macosx/HBAdvancedController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBAdvancedController.m')
-rw-r--r--macosx/HBAdvancedController.m26
1 files changed, 8 insertions, 18 deletions
diff --git a/macosx/HBAdvancedController.m b/macosx/HBAdvancedController.m
index 18ccfe152..0900c010e 100644
--- a/macosx/HBAdvancedController.m
+++ b/macosx/HBAdvancedController.m
@@ -8,31 +8,21 @@
@implementation HBAdvancedController
-- (id)init
+- (instancetype)init
{
- if( self = [super init] )
+ self = [super initWithNibName:@"AdvancedView" bundle:nil];
+ if (self)
{
- [self loadMyNibFile];
+
}
return self;
}
-- (void) setView: (NSBox *) box
-{
- fOptionsBox = box;
- [fOptionsBox setContentView:fX264optView];
-}
-
-- (BOOL) loadMyNibFile
+- (void)loadView
{
- if(![NSBundle loadNibNamed:@"AdvancedView" owner:self])
- {
- NSLog(@"Warning! Could not load myNib file.\n");
- return NO;
- }
-
- return YES;
+ [super loadView];
+ [self setHidden:NO];
}
- (NSString *) optionsString
@@ -60,7 +50,7 @@
{
if(hide)
{
- [fOptionsBox setContentView:fEmptyView];
+ [fOptionsBox setContentView:fFFmpegView];
}
else
{