[MacRuby-devel] Using AXObserverCreate with macruby

2009-05-24 Thread Benjamin Mollenhauer
Hello, how can I use a ruby function as an parameter to AXObserverCreate? extern AXError AXObserverCreate ( pid_t application, AXObserverCallback callback, AXObserverRef *outObserver); It requires an AXObserverCallback, defined as typedef void ( *AXObserverCallback)( AXObserverRef observ

[MacRuby-devel] [SOLVED] Re: CIImage / CICrop broken?

2009-04-06 Thread Benjamin Mollenhauer
Did you try the Objective-C version in 1) a garbage-collected environment 2) 64-bit? Thanks for pointing me in the right direction: In my Ruby project Architecture was set to "$(NATIVE_ARCH_ACTUAL)", probably due the use of the "MacRuby Application" project template. I changed it to "Native

Re: [MacRuby-devel] CIImage / CICrop broken?

2009-04-06 Thread Benjamin Mollenhauer
Am 06.04.2009 um 10:52 schrieb Laurent Sansonetti: Did you try the Objective-C version in 1) a garbage-collected environment 2) 64-bit? My XCode build settings state the following: Architectures: Standard (32-bit) Objective-C Garbage Collection: Unsupported Ben __

[MacRuby-devel] CIImage / CICrop broken?

2009-04-06 Thread Benjamin Mollenhauer
Hi, i have the problem, that under MacRuby cropping of an CIImage fails. Whether i use CIFilter or CIImage#imageByCroppingToRect. Whereas a Cocoa-Application the same code works just fine, my Ruby version repeats the same cropped Image over and over again. Have a look at the Screenshot: htt

[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