Allocating memory in Cocoa
Allocating memory in Cocoa
- Subject: Allocating memory in Cocoa
- From: "Peter Karlsson" <email@hidden>
- Date: Sat, 25 Dec 2004 18:54:55 +0100
Dear list!
What is the right way of allocating memory in Cocoa?
I'm using this code at the moment.
// allocate 100000 bytes for memory1_ptr
if((memory1_ptr = malloc(100000)) == NULL)
{
printf("malloc memory1_ptr failed\n");
}
Best regards Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden