I\'m developing a software with Xcode 6 using Swift. When I press a button, my code takes some informations from the web and writes them on my NSWindow.
So imagine some
Swift 3.0 + version
DispatchQueue.main.async() { // your UI update code }
Posted this because XCode cannot suggest the correct syntax from swift 2.0 version