• 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: 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.

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

  • Prev by Date: Clarification: DO and client identification?
  • Next by Date: Re: toggleToolbarShown - how to validate menu item?
  • Previous by thread: Re: what's an NSZone?
  • Next by thread: Re: what's an NSZone?
  • Index(es):
    • Date
    • Thread