Re: what's an NSZone?
Re: what's an NSZone?
- Subject: Re: what's an NSZone?
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 16 Feb 2002 06:08:23 -0500
on 02-02-15 7:40 PM, Timothy J. Wood at email@hidden wrote:
>
On Friday, February 15, 2002, at 03:38 PM, Bill Cheeseman wrote:
>
> Apple's recently revised Programming Tasks documentation about basic
>
> architecture still says that allocating objects in the application's
>
> zone is
>
> helpful. Is this still true? I have the impression that your comments
>
> are
>
> addressed towards more sophisticated uses of zones.
>
>
I'm not sure what is meant by "the application's zone". This has no
>
meaning unless there is another zone that doesn't belong to the
>
application :) Really, you only get one NSZone right now, so...
I misremembered what I had read. The documentation says this:
"When one object creates another, it is often a good idea to make sure they
are both allocated from the same region of memory. The zone method (declared
in the NSObject protocol) can be used for this purpose; it returns the zone
where the receiver is located. For example:
"id myCompanion = [[TheClass allocWithZone:[self zone]] init];"
So, you're saying this is meaningless, because the zone now consists of all
available memory?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.