Re: Problem using NSTimer in privileged helper tool

2017-10-20 Thread Jens Alfke
> On Oct 20, 2017, at 9:56 AM, Quincey Morris > wrote: > > — When you scheduled the timer on the main run loop, it was actually being > scheduled on the main app’s run loop. When it was block based, only the block > had to be passed across the XPC

Re: Problem using NSTimer in privileged helper tool

2017-10-20 Thread Quincey Morris
On Oct 20, 2017, at 03:23 , Mark Allan wrote: > > That worked with the block-based NSTimer API but not the selector-based API. > I tried changing it to 'currentRunLoop' which got rid of the crash, but the > timer never fired. This is pure guesswork, but I suspect this

Re: Problem using NSTimer in privileged helper tool

2017-10-20 Thread Mark Allan
(sending again - the list was missed off the 'cc' in my reply) > On 19 Oct 2017, at 6:19 pm, Jens Alfke > wrote: > >> On Oct 19, 2017, at 9:04 AM, Mark Allan > > wrote: >> >> Initially, I

Re: Problem using NSTimer in privileged helper tool

2017-10-20 Thread Mark Allan
> On 19 Oct 2017, at 6:05 pm, Quincey Morris > wrote: > > On Oct 19, 2017, at 09:04 , Mark Allan > wrote: >> >> Terminating app due to uncaught exception 'NSInvalidArgumentException', >> reason: '***