what does metaclass mean?
what does metaclass mean?
- Subject: what does metaclass mean?
- From: Ben Dougall <email@hidden>
- Date: Tue, 1 Jul 2003 17:23:44 +0100
about the objective-c pdf. bit confused on what the isa pointer points
to when it's in a class structure. more specifically i don't know what
metaclass means.
the class isa definition from the pdf (pg 194) :
Points to the metaclass of this class. If this class is a metaclass,
the isa
field points to the root metaclass (usually the metaclass for NSObject,
but also possibly the metaclass for NSProxy or a root class of your
owna root class is any class that does not inherit from another
class). This also means that the isa field for the metaclass of the root
class points to itself.
i was thinking that metaclass must mean the root class, but the above
definition seems to go against that thought.
if the above was talking about object instances as well as class's,
it'd make sense as to what a metaclass is, but the above definition is
specifically talking about a class structures, not an object instance
structures.
what's a metaclass?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.