Closed OlshaMB closed 1 month ago
@zenith391 Hello, I am trying to build better support for macos. But I am a bit stuck trying understand EventUserData
, as understand it stores handlers to events on the peer object. If so, then I don't how to put them onto objc.Object.
@zenith391 Hello, I am trying to build better support for macos. But I am a bit stuck trying understand
EventUserData
, as understand it stores handlers to events on the peer object. If so, then I don't how to put them onto objc.Object.
Yes that's what it does. But objc.Object
is just a reference to any kind of Objective-C object (it could be to a string, a dictionary, etc.). So for EventUserData
you should look into the base class of AppKit widgets: NSView
, which is the superclass of things like NSButton
, NSTextView
and so on.
Small fixes to make macos build again