• 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: object Allocation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: object Allocation


  • Subject: Re: object Allocation
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 19 Apr 2006 14:23:55 -0600


On Apr 19, 2006, at 2:18 PM, Jerrod Fowkes wrote:

dictionaryWithDictionary: object

returns the already allocated address by object and doesn't make a copy.

Actually, it makes an autoreleased copy.

So that leads me to think that the dictionary that is returned gets added to the autoreleasepool. thus not having a retain count.

Objects in the autorelease pool have a retain count. All that being in the autorelease pool does is the retain count gets docked by the number of times the object was placed in the pool when NSPopAutoreleasePool() is called.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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: 
 >Re: object Allocation (From: Jerrod Fowkes <email@hidden>)

  • Prev by Date: Re: object Allocation
  • Next by Date: Re: Generating a "left-arrow key" event
  • Previous by thread: Re: object Allocation
  • Next by thread: Re: object Allocation
  • Index(es):
    • Date
    • Thread