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

Re: what does metaclass mean?


  • Subject: Re: what does metaclass mean?
  • From: Ben Dougall <email@hidden>
  • Date: Tue, 1 Jul 2003 20:51:45 +0100

On Tuesday, July 1, 2003, at 08:25 pm, Thomas Finley wrote:

On Tuesday, July 1, 2003, at 12:23 PM, Ben Dougall wrote:
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.

A class's class is a metaclass. When you send a message to an object, it looks in its isa (its class definition) to find the method it should use. When you send a message to a class, it ALSO looks in the class's isa (its class, also called a metaclass) to find the method it should use.

Here's what I remember to help me out: A class of an object is a class, a class of a class is a metaclass, and the class of a metaclass is also a metaclass. (She sells sea shells. :) )
yup, that sentence makes it very clear. just what i was after.

With this stuff in mind, your quote from the definition should make more sense.

thanks very much for your reply Thomas.

it crossed my mind that that's what it might be, but the fact that super_class is a class's second structure variable / field made me think otherwise.

so the isa and super_class pointers just happen to be two pointers pointing to the same thing when it's a class and not the root class. (i did find out that when root class: isa points to itself and super_class is NULL).

thanks.
_______________________________________________
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.

References: 
 >Re: what does metaclass mean? (From: Thomas Finley <email@hidden>)

  • Prev by Date: Re: best practice with helper AppleScript - another solution
  • Next by Date: Re: Strong language about Cocoa and Qt.
  • Previous by thread: Re: what does metaclass mean?
  • Next by thread: Re: best practice with helper AppleScript - another solution
  • Index(es):
    • Date
    • Thread