Notificationcenter xcode 8.2.1 ?

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(…)

 

 

Can anyone advise me on setting this up ? I looked for “using block” and couldn’t find what to use.

Powered by WPeMatico

About

You may also like...

Comments are closed.