On Wed, Sep 10, 2008 at 2:44 PM, Bill <[EMAIL PROTECTED]> wrote: > > Part of the reason I'm asking is because originally I used the above method > with a retain (and released later with the invalidate method), and then ran > my app with Leaks, and Leaks told me that the timer was leaking. >
That's because it was leaking. You sent a -retain to an object, and you didn't send it a corresponding -release, so the object leaked. You need to balance *your own* use of -retain and -release to avoid leaks. What the object does internally, retaining and/or releasing itself, is immaterial to what you need to do with it from outside. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net _______________________________________________ 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]
