[MacRuby-devel] NSControl's partial mapping to HotCocoa

2009-04-02 Thread Frisco Del Rosario
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 l

Re: [MacRuby-devel] NSControl's partial mapping to HotCocoa

2009-04-02 Thread Matt Aimonetti
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 > NSButton inherits from NSControl, whic

[MacRuby-devel] How to use Accessibility API?

2009-04-02 Thread Benjamin Mollenhauer
Hi, i tried unsuccessfuly to use functions like "AXUIElementCopyAttributeValue" from the Accessibility API. /System/Library/Frameworks/ApplicationServices.framework/‍ Frameworks/HIServices.framework/ If I include "framework 'ApplicationServices' it seems, that I have no access to these f

[MacRuby-devel] Obj-C translation

2009-04-02 Thread Frisco Del Rosario
What's the MacRuby style for this Obj-C ? - (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)proposedFrame From http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/windowShouldZoom:toF

Re: [MacRuby-devel] Obj-C translation

2009-04-02 Thread John Shea
Hi there, if you look about a quarter of the way down this page ( the introductory tutorial) http://www.macruby.org/documentation/tutorial.html you will see it all explained. In this case: - (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)proposedFrame could become: windowShoul

Re: [MacRuby-devel] NSControl's partial mapping to HotCocoa

2009-04-02 Thread Richard Kilmer
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