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 7031377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:47:43+00:00 2026-05-28T00:47:43+00:00

I know that alloc is a class method which creates object of the class

  • 0

I know that alloc is a class method which creates object of the class and points its “isa” pointer to the class and thats how messages are mapped at runtime.

and I have some idea about allocWithZone and zones.

Can anyone tell me or point me to a nice link which explains :-

How isa pointer is pointed to the right class ?

How much memory is allocated ?

How is memory for members inherited from parent class created ?

If id is a typedef for objc_object*, what does its isa pointer point to, then how does it hold anyobject because isa pointer will get us to the dispatch table which has selectors for methods but do they have anything that tells us what data-members are suppose to be there ?

  • 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-28T00:47:44+00:00Added an answer on May 28, 2026 at 12:47 am

    The compiler inserts calls through the objc runtime for you, behind the scenes. You can find the library in your include path objc/. objc/runtime.h will probably of most interest. As a bonus, a few select common messages bypass objc_msgSend with these insertions.

    How isa pointer is pointed to the right class?

    objc_constructInstance

    How much memory is allocated?

    class_createInstance
    class_getInstanceSize
    

    How is memory for members inherited from parent class created?

    The memory is zeroed, and isa is set.

    If id is a typedef for objc_object*, what does its isa pointer point to, then how does it hold anyobject because isa pointer will get us to the dispatch table which has selectors for methods but do they have anything that tells us what data-members are suppose to be there?

    Whatever was set at initialization. ObjC object pointers are just raw memory. Unlike other languages, casting and conversion of written types is a direct set of the variable’s address – there is no explicit type promotion or conversion in memory in the following construct:

    MONDisplay * display = [NSString string];
    NSLog(@"%@", display);
    

    the pointer is just the same value returned by [NSString string].

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

Sidebar

Related Questions

I'm creating an instance of a class called S3ObjectController (S3OC) that has one method
I know that services like my.yahoo.com allow you to add content from RSS feeds
I know that ASP.NET MVC will allow me to swap in various View engines
Does anyone know of any reverse proxy solutions that allow the content/data of an
Does anybody know of a tool that allow me to inspect what files an
Does anyone know of any libraries for .net that allow you to use graphics
Do you know some neat Java libaries that allow you to make cartesian product
Anyone know of a JS library that will allow me to syntax highlight a
Does anyone know of a library that would allow me to manipulate Flex DOM
Does anybody know a basic plugin/gem that will allow me to quickly set up

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.