Skip to content

Instantly share code, notes, and snippets.

View freysie's full-sized avatar
💭
I may be slow to respond.

Freya Alminde freysie

💭
I may be slow to respond.
  • 04:54 (UTC +01: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)