opensubscriber
   Find in this group all groups
 
Unknown more information…

c : cocoa-dev@lists.apple.com 18 January 2006 • 7:06AM -0500

Re: -[NSTimer invalidate] does not guarantee that the timer won't fire?
by Jim Correia

REPLY TO AUTHOR
 
REPLY TO GROUP




On Jan 17, 2006, at 5:46 PM, Jim Correia wrote:

> Does this mean that there is no guaranteed way to ensure that a  
> timer will never fire again when its target is going away? (Or is  
> this simply a bug that I should write up.)

Nevermind. I should have done more debugging first. I created a  
retain cycle between my target and my timer, invalidated the timer  
(which was holding the last reference to self) at the beginning of a  
method, then used the object aftewards. My fault...

Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (Cocoa-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.