• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Allocating memory in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Allocating memory in Cocoa
      • From: Sherm Pendley <email@hidden>
    • Re: Allocating memory in Cocoa
      • From: Prachi Gauriar <email@hidden>
    • Re: Allocating memory in Cocoa
      • From: Charlton Wilbur <email@hidden>
  • Prev by Date: Custom NSPopupButton
  • Next by Date: Re: Allocating memory in Cocoa
  • Previous by thread: Re: Custom NSPopupButton
  • Next by thread: Re: Allocating memory in Cocoa
  • Index(es):
    • Date
    • Thread