Skip to content
New issue

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

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

Already on GitHub? # 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.

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

No branches or pull requests

1 participant