Dear GNUStep
김정수 <[email protected]>
| Newsgroups | gmane.comp.lib.gnustep.bugs |
|---|---|
| Message-ID | <CAG=mHVkqToFKLZ3BGNFuqh_aR4c2PW8MCAyWUn4gm3M77u3WiA@mail.gmail.com> |
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. _______________________________________________ Bug-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-gnustep