Skip to content

Instantly share code, notes, and snippets.

@vestige
Created November 4, 2011 14:50
Show Gist options
  • Save vestige/1339497 to your computer and use it in GitHub Desktop.
Save vestige/1339497 to your computer and use it in GitHub Desktop.
MacRuby Spike
class MyController < NSWindowController
attr_writer :button, :text
attr_accessor :words
def clicked(sender)
puts "Button clicked!"
@text.StringValue = "hello!"
@words.StringValue = "0"
end
end
@mattetti
Copy link

mattetti commented Nov 5, 2011

In MacRuby you shouldn't use the legacy ib_outlet class method but simply set an accessor which XCode will automatically see as outlet.

@vestige
Copy link
Author

vestige commented Nov 5, 2011

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