That was it, though further up the chain. The object that created/owned the
task was being GC'd away.
Thanks Bill and Quincy!
On Nov 16, 2010, at 12:53 PM, Bill Bumgarner wrote:
> The issue [I'd bet -- don't have time to dive deep] is that you don't have a
> strong reference to the Tasker ins
On Nov 16, 2010, at 09:17, Jon Gilkison wrote:
> Below is a simple test application that launches a process and logs the
> output as it runs.
>
> It works as expected when the app is set to no garbage collection, but as
> soon as I turn on garbage collection, the following notifications stop
>
The issue [I'd bet -- don't have time to dive deep] is that you don't have a
strong reference to the Tasker instance.
Since notification observers don't hold strong references to observers, either,
the garbage collector sees Tasker as garbage and collects it.
You could fix this any number of wa
Below is a simple test application that launches a process and logs the output
as it runs.
It works as expected when the app is set to no garbage collection, but as soon
as I turn on garbage collection, the following notifications stop working:
- NSTaskDidTerminateNotification
- NSFileHandleR