• 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: Alex Kac <email@hidden>
  • Date: Sun, 21 Dec 2008 15:09:30 -0600

Well yes, I know that :) I was meaning the sample he wrote. He said it was a contrived sample to show this and I was simply interested in seeing the sample because I find them informative.

On Dec 21, 2008, at 2:37 PM, Bill Bumgarner wrote:

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

Alex Kac - President and Founder Web Information Solutions, Inc.

"It is useless for sheep to pass a resolution in favor of vegetarianism while wolves remain of a different opinion."
-- William Randolph Inge






_______________________________________________

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


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>)
 >Re: Stacks & Memory Management. (From: Bill Bumgarner <email@hidden>)

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