Target OS X Sierra …
Been looking at a lot of different ways to use local notifications, however the version of xcode I have (8.2.1) I’m a bit boggled because a lot has been striked out.
let notificationDefaultCenter = NotificationCenter.default
let mainQueue = OperationQueue()
let notification = Notification …
let notify = notificationDefaultCenter.addObserver(…)
init(name: Notification.Name, object: Any? = default, userInfo: [AnyHashable : Any]? = default)
addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol
Can anyone advise me on setting this up ? I looked for “using block” and couldn’t find what to use.
Powered by WPeMatico