Uhm… XOJO Debugger says that WindowPtr is deprecated… could anybody give quick help how to address Window Handlers? Documentation says something about window.handle… but I have no guess how to use it in this Declare:
Soft Declare Function BackingScaleFactor Lib "AppKit" Selector "backingScaleFactor" (target As WindowPtr) As Double
Return BackingScaleFactor(Self)
or, if you should have many declares and don’t want to change the target type in all, typecast a ptr on window.handle and pass this to your declare (and find/change windowptr to ptr).