FROM : Peter Karlsson
DATE : Sat Dec 25 18:54:55 2004
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
DATE : Sat Dec 25 18:54:55 2004
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
| Related mails | Author | Date |
|---|---|---|
| Peter Karlsson | Dec 25, 18:54 | |
| Charlton Wilbur | Dec 25, 19:42 | |
| Prachi Gauriar | Dec 25, 22:08 | |
| Finlay Dobbie | Dec 25, 23:43 | |
| Sherm Pendley | Dec 26, 17:42 |






Cocoa mail archive

