• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling a class method with the runtime ObjC API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Calling a class method with the runtime ObjC API (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: On self = [super init...] ...
  • Next by Date: Accessing the NSImageNameRefreshTemplate image on iOS?
  • Previous by thread: Re: Calling a class method with the runtime ObjC API
  • Next by thread: Accessing the NSImageNameRefreshTemplate image on iOS?
  • Index(es):
    • Date
    • Thread