1# RubyController 2 3require 'osx/cocoa' 4 5class RubyController < OSX::NSObject 6 7 ib_outlets :textField 8 9 ib_action :btnClicked do |sender| 10 @textField.setStringValue "#{sender.title} !!" 11 end 12end 13