summaryrefslogtreecommitdiffstats
path: root/macosx/HBAddCategoryController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-06-08 16:59:25 +0200
committerDamiano Galassi <[email protected]>2018-06-08 16:59:25 +0200
commitc762b2c0ec5b6fb58d1fd453e2b5aed526c6d693 (patch)
treee0ab43c5ddd28ed876158b689be0c93c2380d970 /macosx/HBAddCategoryController.m
parentde7355d5ad5257c4cce5e0a99fffb3ee58264ba0 (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/HBAddCategoryController.m')
-rw-r--r--macosx/HBAddCategoryController.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/macosx/HBAddCategoryController.m b/macosx/HBAddCategoryController.m
index 41de50330..dd85ea4d7 100644
--- a/macosx/HBAddCategoryController.m
+++ b/macosx/HBAddCategoryController.m
@@ -52,8 +52,7 @@
- (IBAction)dismiss:(id)sender
{
- [self.window orderOut:nil];
- [NSApp endSheet:self.window returnCode:NSModalResponseCancel];
+ [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseCancel];
}
- (IBAction)create:(id)sender
@@ -61,8 +60,7 @@
self.category = [[HBPreset alloc] initWithCategoryName:self.name.stringValue builtIn:NO];
[self.manager addPreset:self.category];
- [self.window orderOut:nil];
- [NSApp endSheet:self.window returnCode:NSModalResponseOK];
+ [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseOK];
}