On Sun, Sep 26, 2010 at 5:39 PM, Jeff Johnson <publicpost...@lapcatsoftware.com> wrote: > On Sep 23, 2010, at 6:13 PM, slasktrattena...@gmail.com wrote: > >> In this particular case, though, I might just as well get rid of the >> timer altogether and go for NSObject's >> performSelector:afterDelay:/cancelSelector: instead. Jeff's >> enlightening (and frightening!) discussion about implicit retain >> cycles makes me want to stay as far away from NSTimers as possible. > > Have you read the documentation for -performSelector:withObject:afterDelay: ? > "This method sets up a timer to perform the aSelector message on the current > thread’s run loop." "This method retains the receiver and the anArgument > parameter until after the selector is performed." ;-)
At least I can't be held responsible when the lights go out. But I never had a problem with -performSelector: so I guess they know what they are doing under the hood. _______________________________________________ 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