« FileMaker vs. CURL ve… | Home | The new ZUGFeRD examp… »

Adding NSSwitch to Xojo

The NSSwitch class in MacOS provides a nice toggle control for desktop applications. It looks like the iOS counterpart and represents a boolean flag to toggle something on or off:

You can use it with the NSSwitchControlMBS (or DesktopNSSwitchControlMBS) control in Xojo and the view is implemented via NSSwitchMBS class. We have an action event to run when the user changes the value and a State property for code to read/write the current value.

Please try with MBS Xojo Plugins 21.1pr2 and let us know what you think. Your feedback is welcome and will help to improve this control for the next releases.
14 02 22 - 09:51