I'm struggling to use pointers properly with Kotlin/native in ObjC interop.
I found a SO post with clear ObjC / Swift instructions to use an API, and I'm struggling to replicate in Kotlin: https://stackoverflow.com/a/48030215/471744
val windowInfoList = CGWindowListCopyWindowInfo(kCGWindowListOptionAll, kCGNullWindowID)!!
Swift / ObjC seems to be able to get values out just fine. I'd assume Kotlin has a way to as well. Part of the problem is I'm a little out of my comfort zone working with pointers, and the other part is the documentation around interop isn't very helpful here.
spierce7
07/16/2018, 2:09 PM
@olonho Why can Swift / ObjC interact with these components easily, but I'm forced to use the C API in Kotlin?