Re: Calling a class method with the runtime ObjC API

2010-11-18 Thread Greg Parker
On Nov 18, 2010, at 1:18 PM, vincent habchi wrote: > I supposed I couldn't do such a simple thing as [MyClass perform:selector] > because the perform: method is an instance one. So I wrote this: All class objects are also instances of NSObject. That means any instance method from NSObject is als

Re: Calling a class method with the runtime ObjC API

2010-11-18 Thread vincent habchi
Le 18 nov. 2010 à 22:31, Joar Wingfors a écrit : >> I supposed I couldn't do such a simple thing as [MyClass perform:selector] >> because the perform: method is an instance one. > > [MyClass performSelector:theSelector]; > Works like a charm. Thanks Joar, next time I shall be more adventu

Re: Calling a class method with the runtime ObjC API

2010-11-18 Thread Joar Wingfors
On 18 nov 2010, at 13.18, vincent habchi wrote: > I supposed I couldn't do such a simple thing as [MyClass perform:selector] > because the perform: method is an instance one. Sure you can: [MyClass performSelector:theSelector]; Works like a charm. j o a r _