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
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
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
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
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
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