Re: what's an NSZone?
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.