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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to