Skip to content

Commit

Permalink
Remove some deprecated macOS API I accidentally used (#241)
Browse files Browse the repository at this point in the history
Ooops!
  • Loading branch information
baconpaul authored and defiantnerd committed Apr 26, 2024
1 parent a0da540 commit 84e8924
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/detail/standalone/macos/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,13 @@ - (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:)];

[[self contentView] addSubview:okButton];

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:)];

Expand All @@ -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];
Expand Down Expand Up @@ -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];
}

}
}

Expand Down

0 comments on commit 84e8924

Please sign in to comment.