Re: Objective C memory allocation
Re: Objective C memory allocation
- Subject: Re: Objective C memory allocation
- From: Ondra Cada <email@hidden>
- Date: Tue, 6 Apr 2004 17:09:45 +0200
Nicko,
On Tuesday, Apr 6, 2004, at 16:29 Europe/Prague, Nicko van Someren
wrote:
Can someone tell me if the heap from which Objective C objects get
allocated is the same as the one used by malloc? For various reasons
I want to be able to create fake objects (in fact I want to make
objects who's size is not fixed at compile time). The following code
seems to work:
...
Well, I am pretty sure that even though uncodumented, it would work.
Nevertheless, is there a reason not to use the *documented* way of
NSAllocateObject(Class aClass, unsigned extraBytes, NSZone *zone);
?
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.