Created
November 4, 2011 14:50
-
-
Save vestige/1339497 to your computer and use it in GitHub Desktop.
MacRuby Spike
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 MyController < NSWindowController | |
attr_writer :button, :text | |
attr_accessor :words | |
def clicked(sender) | |
puts "Button clicked!" | |
@text.StringValue = "hello!" | |
@words.StringValue = "0" | |
end | |
end |
Tanks your advice. yesterday, the acquaintance point out same thing. From now on, I will study with the book written by you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In MacRuby you shouldn't use the legacy ib_outlet class method but simply set an accessor which XCode will automatically see as outlet.