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