From: Scott T. <ea...@ma...> - 2008-04-06 22:16:43
|
I have a ruby class which defines a class method: def MyClass def MyClass.doSomethingInteresting ... blah blah blah ... return someObject; end end I'd like to call this method from Objective-C so I tried something like this: Class myClass = NSStringClassFromString(@"MyClass"); id myObject = [myClass performSelector: @selector(doSomethingInteresting)] But this gives me an unrecognized selector warning on the console and fails. Is it possible to call a ruby class method from Objective-C? Scott |