Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated #241

Merged
merged 1 commit into from
Mar 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading