• 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
Re: Allocating memory in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allocating memory in Cocoa


  • Subject: Re: Allocating memory in Cocoa
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 25 Dec 2004 22:43:38 +0000

On Sat, 25 Dec 2004 15:08:57 -0600, Prachi Gauriar <email@hidden> wrote:
> There's also void NSZoneMalloc
>         void *NSZoneMalloc(NSZone *zone, unsigned int size)
>
> It's like malloc, but allocates from the specified zone, which seems
> more appropriate for objects allocated/copied using
> +allocWithZone:/copyWithZone:.  There's also NSZoneCalloc, NSZoneFree,
> and NSZoneRealloc.

As of 10.2 or thereabouts, NSZone is bridged with malloc_zone_t, see
<malloc/malloc.h>. malloc uses the same implementation.

 -- Finlay
 _______________________________________________
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

References: 
 >Allocating memory in Cocoa (From: "Peter Karlsson" <email@hidden>)
 >Re: Allocating memory in Cocoa (From: Prachi Gauriar <email@hidden>)

  • Prev by Date: Re: Allocating memory in Cocoa
  • Next by Date: Disabling NSToolbarItem label for view item in text only mode
  • Previous by thread: Re: Allocating memory in Cocoa
  • Next by thread: Re: Allocating memory in Cocoa
  • Index(es):
    • Date
    • Thread