Documentation Archive Developer
Search

ServiceManagement Changes for Swift

ServiceManagement

Declaration
From
func SMJobBless(_ domain: CFString!, _ executableLabel: CFString, _ auth: AuthorizationRef, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>) -> UInt8
To
func SMJobBless(_ domain: CFString!, _ executableLabel: CFString, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Declaration
From
func SMJobRemove(_ domain: CFString!, _ jobLabel: CFString, _ auth: AuthorizationRef, _ wait: UInt8, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>) -> UInt8
To
func SMJobRemove(_ domain: CFString!, _ jobLabel: CFString, _ auth: AuthorizationRef!, _ wait: Bool, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Declaration
From
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: AuthorizationRef, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>) -> UInt8
To
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Declaration
From
func SMLoginItemSetEnabled(_ identifier: CFString, _ enabled: UInt8) -> UInt8
To
func SMLoginItemSetEnabled(_ identifier: CFString, _ enabled: Bool) -> Bool