Created
February 6, 2011 23:00
-
-
Save buddylindsey/813803 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainController < NSWindowController | |
def awakeFromNib | |
end | |
def newWindow(sender) | |
someData = "Blob" | |
nw = MainWindowController.alloc.init | |
nw.data = someData | |
nw.window().makeKeyAndOrderFront(self) | |
end | |
end | |
class MainWindowController < NSWindowController | |
attr_accessor :data | |
def windowNibName | |
return "MainWindow" | |
end | |
def awakeFromNib | |
end | |
def push_me(sender) | |
puts @data | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment