Is there a way to get a instance by a address?
I have a NSWindow address, but I have no idea how to convert address to a instance.
ATM this is my error code.
Copy code
fun setWindow(windowPtr: Long) {
val pointer = windowPtr.toCPointer<CVariable>()
val window = NSWindow(pointer)
}