@Christian_Schmitz I am using an NSSwitchControl on a popover panel. Selecting it triggers a resizing of the panel which results in moving of the switch during the animation effect of the popover. Since the mouse is still over the switch, this then causes multiple recursions as the Switch detects those movements and crashes the app with an overloaded stack (not caught by Xojo’s IDE).
As you might imagine, it has taken a fair bit of time to deduce the problem but thanks to ChatGPT for some hints.
The question is, is this a bug in desktopMSSwitchControlMBS? Or, do I have to revert to checkboxes?
Edit: Adding an example of the recursion error:
-------- RECURSION LEVEL 37306
13 AppKit 0x1960a527c forwardMethod + 252
14 AppKit 0x1966d422c __39-[NSView(NSTrackingArea) cursorUpdate:]_block_invoke + 52
15 AppKit 0x1966d4194 -[NSView(NSTrackingArea) cursorUpdate:] + 132