From 0e8eb04fd769fa471b71e5e5f81b55c47537d694 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 10 Jun 2018 09:12:18 +0200 Subject: MacGui: fix another round of deprecation warnings. Remove drawer code. --- macosx/HBPresetsViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macosx/HBPresetsViewController.m') 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]; -- cgit v1.2.3