• 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
what does metaclass mean?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: what does metaclass mean?
      • From: Thomas Finley <email@hidden>
  • Prev by Date: Re: (MVC) Disappearing Source == Disappearing Source Control?
  • Next by Date: Re: (MVC) Disappearing Source == Disappearing Source Control?
  • Previous by thread: Re: Jaguar/Panther compatibility
  • Next by thread: Re: what does metaclass mean?
  • Index(es):
    • Date
    • Thread