Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4543240
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:30:13+00:00 2026-05-21T15:30:13+00:00

okay, so I understand that an object is an instance of a class that

  • 0

okay, so I understand that an object is an instance of a class that must be allocated and initialized, but are classes themselves objects?

I know when you create a new class it is an instance of something else, like NSObject. So, if this makes it a class, then objects can hold not only variables and methods, but other objects as well, right?

Sorry, this is probably really basic, but I am reading two books about cocoa and xcode and this point is a little unclear (probably because of my lack of experience in other languages).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:30:14+00:00Added an answer on May 21, 2026 at 3:30 pm

    Here is a pretty good explanation of the matter by Greg Parker

    Quoting:

    […] Each Objective-C class is also an
    object. It has an isa pointer and
    other data, and can respond to
    selectors. When you call a “class
    method” like [NSObject alloc], you are
    actually sending a message to that
    class object.

    Since a class is an object, it must be
    an instance of some other class: a
    metaclass. The metaclass is the
    description of the class object, just
    like the class is the description of
    ordinary instances. In particular, the
    metaclass’s method list is the class
    methods: the selectors that the class
    object responds to. When you send a
    message to a class – an instance of a
    metaclass – objc_msgSend() looks
    through the method list of the
    metaclass (and its superclasses, if
    any) to decide what method to call.
    Class methods are described by the
    metaclass on behalf of the class
    object, just like instance methods are
    described by the class on behalf of
    the instance objects.

    What about the metaclass? Is it
    metaclasses all the way down? No. A
    metaclass is an instance of the root
    class’s metaclass; the root metaclass
    is itself an instance of the root
    metaclass. The isa chain ends in a
    cycle here: instance to class to
    metaclass to root metaclass to itself.
    The behavior of metaclass isa pointers
    rarely matters, since in the real
    world nobody sends messages to
    metaclass objects. […]

    Further interesting reads:

    Understanding the Objective-C Runtime by Colin Wheeler
    (search for paragraph titled “So Classes define objects…”)

    What is a meta-class in Objective-C? by Matt Gallagher

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, we know that the following two lines are equivalent - (0 == i)
Okay so im working on this php image upload system but for some reason
Okay, here's the scenario. I have a utility that processes tons of records, and
Okay, I've seen but haven't programmed in C# before. You can assume I'm competent
Okay, so this probably sounds terribly nefarious, but I need such capabilities for my
Okay. I know this looks like the typical Why didn't he just Google it
Okay, the question might seem dumb, but I'm asking it anyways. After struggling for
Okay, I have a database, but no tables in it. I have some entity
Okay i'm trying to understand WPF and the popular MVVM Pattern. Now i have
Okay, I understand how to work delegation in a modal view to send a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.