Re: Unwanted retain
Re: Unwanted retain
- Subject: Re: Unwanted retain
- From: "b.bum" <email@hidden>
- Date: Thu, 5 Feb 2004 11:28:57 -0800
This horse deserves flogging as it is a very large source of confusion.
On Feb 5, 2004, at 10:14 AM, Jens Bauer wrote:
-I always released the timer after invalidating it.
I don't know whether this would make my application crash or not,
however, I experienced crashes now and then, while clicking the
close-button in a window, where I had a timer running!
If you called -retain (or +alloc), you should -release. If you
didn't, you should not. If you are relying on the NSRunLoop to retain
your timer, your code is buggy.
b.bum
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.