On Mar 19, 2008, at 11:54 AM, Stuart Malin wrote:

I am having some trouble in an app with an object and its retain counts, so I added methods to intercept -retain and -release on my affected object so I could set breakpoints to observe the value. But doing so causes some really odd behavior, such as the object receiving extra retain events (such as when it is _removed_ from an array). Why would my intercepting these, but nonetheless propagating them up the class hierarchy, cause problems?

Instead of doing what you're trying, I'd recommend using Instruments in object-alloc mode to track retains and releases of objects. That should be a lot less accident-prone.

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

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to