[MacRuby-devel] performSelectorOnMainThread Problem

2011-10-10 Thread Alex Greif
The xcode documentation states that if the method performSelectorOnMainThread has the argument withObject:nil, then the nil means that the target method takes no arguments. The following code throws an ArgumentError wrong number of arguments (1 for 0): def foo self.performSelectorOnMainThrea

Re: [MacRuby-devel] performSelectorOnMainThread Problem

2011-10-10 Thread Daniel Westendorf
This is by design, as the method passes the caller to the selector. dw On Mon, Oct 10, 2011 at 7:54 AM, Alex Greif wrote: > The xcode documentation states that if the method > performSelectorOnMainThread has the argument withObject:nil, then the nil > means that the target method takes no argume

[MacRuby-devel] NSInvocationOperation usage Segmentation fault

2011-10-10 Thread Alex Greif
The following code crashes with a segmentation fault. Any idea whether I misunderstood the usage or it is a macruby bug? thanks, ALex. ---code--- framework 'Foundation' class Foo def bar puts 'bar' end end operation = NSInvocationOperation.alloc.i