summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsViewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-06-10 09:12:18 +0200
committerDamiano Galassi <[email protected]>2018-06-10 09:12:18 +0200
commit0e8eb04fd769fa471b71e5e5f81b55c47537d694 (patch)
tree5597113cd9a93a437af03859b38a22e2ea424f40 /macosx/HBPresetsViewController.m
parentd3cd483eeddd8726bad862e811b31f75c1fad965 (diff)
MacGui: fix another round of deprecation warnings. Remove drawer code.
Diffstat (limited to 'macosx/HBPresetsViewController.m')
-rw-r--r--macosx/HBPresetsViewController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBPresetsViewController.m b/macosx/HBPresetsViewController.m
index d2a22b378..17e174f56 100644
--- a/macosx/HBPresetsViewController.m
+++ b/macosx/HBPresetsViewController.m
@@ -164,7 +164,7 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
[panel beginWithCompletionHandler:^(NSInteger result)
{
- if (result == NSFileHandlingPanelOKButton)
+ if (result == NSModalResponseOK)
{
NSURL *presetExportDirectory = [panel.URL URLByDeletingLastPathComponent];
[[NSUserDefaults standardUserDefaults] setURL:presetExportDirectory forKey:@"LastPresetExportDirectoryURL"];
@@ -196,7 +196,7 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
{
[[NSUserDefaults standardUserDefaults] setURL:panel.directoryURL forKey:@"LastPresetImportDirectoryURL"];
- if (result == NSFileHandlingPanelOKButton)
+ if (result == NSModalResponseOK)
{
for (NSURL *url in panel.URLs)
{
@@ -262,7 +262,7 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
alert.informativeText = NSLocalizedString(@"You can't undo this action.", @"Delete preset alert -> informative text");
[alert addButtonWithTitle:NSLocalizedString(@"Delete Preset", @"Delete preset alert -> first button")];
[alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"Delete preset alert -> second button")];
- alert.alertStyle = NSCriticalAlertStyle;
+ alert.alertStyle = NSAlertStyleCritical;
NSInteger status = [alert runModal];