From 84e8924c511193e3f6c5ef92fa9ce5805e8c52ba Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 24 Mar 2024 13:00:42 -0400 Subject: [PATCH] Remove some deprecated macOS API I accidentally used (#241) Ooops! --- src/detail/standalone/macos/AppDelegate.mm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/detail/standalone/macos/AppDelegate.mm b/src/detail/standalone/macos/AppDelegate.mm index ba4a3bb4..db8260cd 100644 --- a/src/detail/standalone/macos/AppDelegate.mm +++ b/src/detail/standalone/macos/AppDelegate.mm @@ -324,8 +324,6 @@ - (void)setupContents // Create the button NSButton *okButton = [[NSButton alloc] initWithFrame:NSMakeRect(400 - 80 - 80, 0, 80, 30)]; [okButton setTitle:@"OK"]; - [okButton setButtonType:NSMomentaryLightButton]; // Set the button type - [okButton setBezelStyle:NSRoundedBezelStyle]; [okButton setTarget:self]; [okButton setAction:@selector(okButtonPressed:)]; @@ -333,8 +331,6 @@ - (void)setupContents NSButton *cancelButton = [[NSButton alloc] initWithFrame:NSMakeRect(400 - 80, 0, 80, 30)]; [cancelButton setTitle:@"Cancel"]; - [cancelButton setButtonType:NSMomentaryLightButton]; // Set the button type - [cancelButton setBezelStyle:NSRoundedBezelStyle]; [cancelButton setTarget:self]; [cancelButton setAction:@selector(cancelButtonPressed:)]; @@ -349,8 +345,6 @@ - (void)setupContents NSButton *defaultButton = [[NSButton alloc] initWithFrame:NSMakeRect(95, 215, 300, 30)]; [defaultButton setTitle:@"Reset to System Default"]; - [defaultButton setButtonType:NSMomentaryLightButton]; // Set the button type - [defaultButton setBezelStyle:NSRoundedBezelStyle]; [defaultButton setTarget:self]; [defaultButton setAction:@selector(defaultButtonPressed:)]; [[self contentView] addSubview:defaultButton]; @@ -475,9 +469,8 @@ - (void)defaultButtonPressed:(id)sender const auto sri = [[item title] integerValue]; if ((int)sr == (int)sri) { - [sampleRateSelection selectItem: item]; + [sampleRateSelection selectItem:item]; } - } }