Re: Calling a class method with the runtime ObjC API
Re: Calling a class method with the runtime ObjC API
- Subject: Re: Calling a class method with the runtime ObjC API
- From: Greg Parker <email@hidden>
- Date: Thu, 18 Nov 2010 14:22:10 -0800
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 also available for class objects.
(More precisely, a class object is an instance of its root class, but root classes other than NSObject are uncommon.)
http://sealiesoftware.com/blog/archive/2009/04/14/objc_explain_Classes_and_metaclasses.html
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden