bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dear GNUStep


From: 김정수
Subject: Dear GNUStep
Date: Mon, 20 Feb 2017 15:31:45 +0900

Hi. I am Korean iOS developer who have studied GNUStep.

This is not a bug just question. please give me a light...



when we initialize object in Objective-C, we usually write like this.


[NSObject alloc]. so I have a big question and tracked how to work 'alloc' in GNUStep

and found it in your source code. (https://github.com/gnustep/base/blob/master/Source/NSObject.m)



it finally call 'NSAllocateObject' method and I unstated how they work roughly
but I cannot understand how obj_layout which is store retain count (called Header in my book) is added in Class.

your code just write like this
new = (id)&((obj)new)[1];

but i cannot why [0] is obj_layout.

I cannot find where they are connecting.

please save me.
thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]