Skip to content

Instantly share code, notes, and snippets.

@arohner
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arohner/700a0944d850d1cd7077 to your computer and use it in GitHub Desktop.
Save arohner/700a0944d850d1cd7077 to your computer and use it in GitHub Desktop.
class Test : NSWindowController {
var foo: String
init(window:NSWindow!)
{
self.foo = "foo"
super.init(window:window)
}
init(coder:NSCoder!)
{
self.foo = "foo"
super.init(coder:coder)
}
}
class AppDelegate : NSObject, NSApplicationDelegate {
@IBOutlet weak var window: NSWindow!
var test: Test
init()
{
self.test = Test(windowNibName: "Foo")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment