Skip to content

Instantly share code, notes, and snippets.

@lilyball
Forked from arohner/gist:700a0944d850d1cd7077
Created July 24, 2014 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lilyball/6688604527a384da4416 to your computer and use it in GitHub Desktop.
Save lilyball/6688604527a384da4416 to your computer and use it in GitHub Desktop.
import Cocoa
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)
}
init() {
self.foo = "foo"
super.init()
}
}
class AppDelegate : NSObject, NSApplicationDelegate {
@IBOutlet weak var window: NSWindow!
var test: Test
init()
{
test = Test(windowNibName: "Foo")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment