Skip to content

Instantly share code, notes, and snippets.

View freysie's full-sized avatar

Freya Alminde freysie

  • 10:43 (UTC +02:00)
View GitHub Profile
class Window {
let element: AXUIElementRef
init?(processID: pid_t) {
element = AXUIElementCreateApplication(processID).takeRetainedValue()
}
var processID: pid_t {
let pointer = UnsafeMutablePointer<pid_t>.alloc(1)