NSButton inherits from NSControl, which — according to http://www.macruby.org/trac/wiki/HotCocoaStatus — is partially mapped to HotCocoa. Is this incomplete mapping the reason NSButton.respond_to?("setEnabled") == false ?
Shouldn't it be: NSButton.new.respond_to?("setEnabled") == false setEnabled or enabled= looks like it would be an instance method instead of class method... Sorry I can't be more helpful, I'm on my way to the airport. - Matt 2009/4/2 Frisco Del Rosario <frisco@laszlomail.com>
NSButton inherits from NSControl, which — according to http://www.macruby.org/trac/wiki/HotCocoaStatus — is partially mapped to HotCocoa.
Is this incomplete mapping the reason NSButton.respond_to?("setEnabled") == false ? _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
setEnabled should be called on the instance, not the class: NSButton.new.respond_to?("setEnabled") == true -rich On Apr 2, 2009, at 6:08 AM, Frisco Del Rosario wrote:
NSButton inherits from NSControl, which — according to http://www.macruby.org/trac/wiki/HotCocoaStatus — is partially mapped to HotCocoa.
Is this incomplete mapping the reason NSButton.respond_to? ("setEnabled") == false ? _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (3)
-
Frisco Del Rosario
-
Matt Aimonetti
-
Richard Kilmer