diff options
author | Damiano Galassi <[email protected]> | 2018-06-08 16:59:25 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2018-06-08 16:59:25 +0200 |
commit | c762b2c0ec5b6fb58d1fd453e2b5aed526c6d693 (patch) | |
tree | e0ab43c5ddd28ed876158b689be0c93c2380d970 /macosx/HBRenamePresetController.m | |
parent | de7355d5ad5257c4cce5e0a99fffb3ee58264ba0 (diff) |
MacGui: set the minimum deployment target to 10.10. Remove Growl and use macOS standard notifications. Remove deprecated API usage and code that doesn't compile anymore (QTKit).
Diffstat (limited to 'macosx/HBRenamePresetController.m')
-rw-r--r-- | macosx/HBRenamePresetController.m | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/macosx/HBRenamePresetController.m b/macosx/HBRenamePresetController.m index 2b788da32..baeee738e 100644 --- a/macosx/HBRenamePresetController.m +++ b/macosx/HBRenamePresetController.m @@ -41,10 +41,7 @@ { [super windowDidLoad]; - if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_9) - { - self.name.placeholderString = self.preset.name; - } + self.name.placeholderString = self.preset.name; self.name.stringValue = self.preset.name; [[NSNotificationCenter defaultCenter] addObserver:self @@ -63,8 +60,7 @@ - (IBAction)dismiss:(id)sender { - [self.window orderOut:nil]; - [NSApp endSheet:self.window returnCode:NSModalResponseCancel]; + [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseCancel]; } - (IBAction)rename:(id)sender @@ -79,9 +75,7 @@ else { [self.preset setName:self.name.stringValue]; - - [self.window orderOut:nil]; - [NSApp endSheet:self.window returnCode:NSModalResponseContinue]; + [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseOK]; } } |