Hi 

To allocate memory, you may do as in the following example 
(which allocates 10 bytes):

buffer = NSZoneMalloc (NSDefaultMallocZone (), 10);

To release the memory, you may then use: 

NSZoneFree (NSDefaultMallocZone (), buffer);

To do similar things, look to the functions NSZoneXXXX, 
and pass NSDefaultMallocZone () as the (NSZone *) argument.


On Sun, 2 Jul 2000 [EMAIL PROTECTED] wrote:

> Hello,
> 
> I have a book on developing nextstep applications and I am trying to
> use it to learn to program on MAC OS X.  Some of the functions in the book
> have changed.  The first sample program calls NX_MALLOC and NX_FREE.
> There is NSFree in the MAC os X implementation, which I assume is its
> equivalent, but what is the equivalent to NX_MALLOC.
> 
> 
> Thanks,
> J.R. Blackham
> 
> 

Reply via email to