• 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: what's an NSZone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what's an NSZone?


  • Subject: Re: what's an NSZone?
  • From: "Timothy J. Wood" <email@hidden>
  • Date: Sun, 17 Feb 2002 10:41:11 -0800

On Sunday, February 17, 2002, at 10:30 AM, Timothy J. Wood wrote:
Off to go investigate this.... :)

So, like Chris' comments suggested (but I just wanted to confirm), NSCreateZone just returns the default zone (since it needs to be symmetric with NSRecycleZone).

Guess I'll go fix OmniWeb now... :)

-tim


/*
cc -O2 -Wall zone-test.m -o zone-test -framework Foundation
*/

#import <Foundation/Foundation.h>
#import <objc/malloc.h>

int main (int argc, char *argv[])
{
NSZone *nsZone;

nsZone = NSCreateZone(NSPageSize(), NSPageSize(), YES);
fprintf(stderr, "created NSZone = 0xx\n", nsZone);
fprintf(stderr, "default NSZone = 0xx\n", NSDefaultMallocZone());
fprintf(stderr, "default malloc zone = 0xx\n", malloc_default_zone());

return 0;
}


created NSZone = 0x00084010
default NSZone = 0x00084010
default malloc zone = 0x00084010
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: what's an NSZone? (From: "Timothy J. Wood" <email@hidden>)

  • Prev by Date: Re: Substring in String?
  • Next by Date: Re: Substring in String?
  • Previous by thread: Re: what's an NSZone?
  • Next by thread: RE: what's an NSZone?
  • Index(es):
    • Date
    • Thread