On Jun 26, 2009, at 1:31 PM, James Gregurich wrote:
If my resource is handed off to some external subsystem for release and I can't DETERMINE the order of the releases with respect to each other and other components of my code, then I would call that non- deterministic and undesirable.

As soon as your resource is handed off to any subsystem that you did not write, you can't determine the order of releases. Said subsystem might release or it might cache for a while or it might retain it for purposes of background processing (to be released later) or it might autorelease or it might retain then autorelease in a different thread.

The point is the same as -retainCount. Once your object goes through any of the system APIs, there is a chance that the retain count will change and said behavior may differ based on architecture, OS release, or something else.

b.bum

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to