• 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: Stacks & Memory Management.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stacks & Memory Management.


  • Subject: Re: Stacks & Memory Management.
  • From: Bill Bumgarner <email@hidden>
  • Date: Sun, 21 Dec 2008 12:37:17 -0800

On Dec 21, 2008, at 12:31 PM, Alex Kac wrote:
For curiosity sake - care to share?

The retain count of any given objet at any given time is entirely an implementation detail.


If you can guarantee that an instance of a class that you created has *never* passed through *any* of the system provided APIs, then you can rely upon the retain count. As soon as you pass your object into someone else's framework, that framework's code may -retain/-release/- autorelease the object in any way it sees fit as long as it follows the Cocoa Memory Management Guidelines.

b.bum
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Stacks & Memory Management.
      • From: Alex Kac <email@hidden>
References: 
 >Re: Cocoa-dev Digest, Vol 5, Issue 2186 (From: Steve Wetzel <email@hidden>)
 >Stacks & Memory Management. (From: Bill Bumgarner <email@hidden>)
 >Re: Stacks & Memory Management. (From: Robert Marini <email@hidden>)
 >Re: Stacks & Memory Management. (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: Stacks & Memory Management.
  • Next by Date: Re: Optimizing NSRectFill
  • Previous by thread: Re: Stacks & Memory Management.
  • Next by thread: Re: Stacks & Memory Management.
  • Index(es):
    • Date
    • Thread