Unfortunately, I haven\'t found anything useful on the Internet - I wanted to know, what code I actually have to type for initializing an application without using storyboar
The top level code sample above no longer works in recent versions of Xcode. Instead use this:
import Cocoa
let delegate = AppDelegate() //alloc main app's delegate class
NSApplication.shared().delegate = delegate //set as app's delegate
let ret = NSApplicationMain(CommandLine.argc, CommandLine.unsafeArgv)