summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreferencesController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-07-10 20:06:09 +0200
committerDamiano Galassi <[email protected]>2018-07-10 20:06:09 +0200
commitf6a000f1c97f4aa0e4fc6f7751dc5bedb8e3a0bf (patch)
tree966d59d56302aae46ac334d0e2939058ed9ac0e4 /macosx/HBPreferencesController.m
parent44d7c56f5551c2b862811c70ae457fd5f2a5c797 (diff)
MacGui: remove a bunch of unneeded compatibility code.
Diffstat (limited to 'macosx/HBPreferencesController.m')
-rw-r--r--macosx/HBPreferencesController.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m
index 753f371fb..aa02821f6 100644
--- a/macosx/HBPreferencesController.m
+++ b/macosx/HBPreferencesController.m
@@ -104,15 +104,14 @@
}
/**
- * -[HBPreferencesController awakeFromNib]
*
* Called after all the outlets in the nib file have been attached. Sets up the
* toolbar and shows the "General" pane.
*
*/
-- (void) awakeFromNib
+- (void)windowDidLoad
{
- NSToolbar * toolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
+ NSToolbar *toolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
[toolbar setDelegate: self];
[toolbar setAllowsUserCustomization: NO];
[toolbar setDisplayMode: NSToolbarDisplayModeIconAndLabel];
@@ -294,7 +293,7 @@
view.hidden = YES;
[NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {
- if ([context respondsToSelector:@selector(setAllowsImplicitAnimation:)] && NSClassFromString(@"NSVisualEffectView"))
+ if ([context respondsToSelector:@selector(setAllowsImplicitAnimation:)])
{
context.allowsImplicitAnimation = YES;
}