gnustep / libs-gui

The GNUstep gui library is a library of graphical user interface classes written completely in the Objective-C language; the classes are based upon Apple's Cocoa framework (which came from the OpenStep specification). *** Larger patches require copyright assignment to FSF. please file bugs here. ***
http://www.gnustep.org
GNU General Public License v3.0
279 stars 103 forks source link

Allow multiple selection on NSSegmentedControl #237

Open optimisme opened 11 months ago

optimisme commented 11 months ago

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.