ApplicationServices Changes for Swift
ApplicationServices
Declaration | |
---|---|
From | func AXObserverCreate(_ application: pid_t, _ callback: ApplicationServices.AXObserverCallback, _ outObserver: UnsafeMutablePointer<AXObserver?>) -> AXError |
To | func AXObserverCreate(_ application: pid_t, _ callback: @escaping ApplicationServices.AXObserverCallback, _ outObserver: UnsafeMutablePointer<AXObserver?>) -> AXError |
Declaration | |
---|---|
From | func AXObserverCreateWithInfoCallback(_ application: pid_t, _ callback: ApplicationServices.AXObserverCallbackWithInfo, _ outObserver: UnsafeMutablePointer<AXObserver?>) -> AXError |
To | func AXObserverCreateWithInfoCallback(_ application: pid_t, _ callback: @escaping ApplicationServices.AXObserverCallbackWithInfo, _ outObserver: UnsafeMutablePointer<AXObserver?>) -> AXError |
Declaration | |
---|---|
From | func PasteboardSetPromiseKeeper(_ inPasteboard: Pasteboard, _ inPromiseKeeper: ApplicationServices.PasteboardPromiseKeeperProcPtr, _ inContext: UnsafeMutableRawPointer?) -> OSStatus |
To | func PasteboardSetPromiseKeeper(_ inPasteboard: Pasteboard, _ inPromiseKeeper: @escaping ApplicationServices.PasteboardPromiseKeeperProcPtr, _ inContext: UnsafeMutableRawPointer?) -> OSStatus |