title: OSX application without storyboard or xib files using Swift
body: <p>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 storyboard or XIB files in Swift. I know I have to have a <code>.swift</code> file called <code>main</code>. But I don't know what to write in there (like do I need autoreleasepool or something like that?). For example, what would I do for initializing an <code>NSMenu</code> and how would I add a <code>NSViewController</code> to the active window (iOS's similar <code>.rootViewController</code> doesn't help). Thanks for any help ;)</p>
  
  <p>Edit:
  I actually don't want to use <code>@NSApplicationMain</code> in front of the <code>AppDelegate</code>. I'd rather know what exactly happens there and then do it myself.</p>