Skip navigation.
 
mlAllocating memory in Cocoa
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

Related mailsAuthorDate
mlAllocating memory in Cocoa Peter Karlsson Dec 25, 18:54
mlRe: Allocating memory in Cocoa Charlton Wilbur Dec 25, 19:42
mlRe: Allocating memory in Cocoa Prachi Gauriar Dec 25, 22:08
mlRe: Allocating memory in Cocoa Finlay Dobbie Dec 25, 23:43
mlRe: Allocating memory in Cocoa Sherm Pendley Dec 26, 17:42