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

Allow multiple selection on NSSegmentedControl #237

Open
optimisme opened this issue Jan 2, 2024 · 0 comments
Open

Allow multiple selection on NSSegmentedControl #237

optimisme opened this issue Jan 2, 2024 · 0 comments

Comments

@optimisme
Copy link

optimisme commented Jan 2, 2024

In Cocoa, NSSegmentedControl elements by default only allow one item to be selected, but with 'setTrackingMode':

[bSegmentedAny setTrackingMode:NSSegmentSwitchTrackingSelectAny];

They allow configuring the object to select multiple values. This functionality is necessary, for example, in the selection of text styles (bold, italic, underline, ...) which are multiple On/Off values in the same NSSegment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant