Background app + NSTimer
Background app + NSTimer
- Subject: Background app + NSTimer
- From: Raphael Sebbe <email@hidden>
- Date: Thu, 3 Jan 2002 14:06:46 +0100
Hi all,
As the subject says, I have a Cocoa (AppKit) app in the background that
regularly reschedules timers in its run loop. Checking the ObjectAlloc
output, I saw the timer's target was not released after the timer was
invalidated unless I brought the app in the foreground (all targets get
correctly deallocated at that time). This is quite annoying to me since
that app is of the kind that always stays in the background.
Perhaps I did not look long enough to see those targets deallocated, or
there are some runloop tweaking possible. Could someone comment on this ?
Thank you,
Raphael