[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] CocoaDialog works, sched doesn't
James McCartney writes:
>
> I got it working. The key was using NSRunLoop's addTimer:forMode:
> method, and separating the tasks using two NSTimers instead of one.
>
> [[NSRunLoop currentRunLoop] addTimer: appClockTimer
> forMode: NSModalPanelRunLoopMode];
I would have thought you would also need:
[[NSRunLoop currentRunLoop] addTimer: appClockTimer
forMode: NSDefaultRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer: appClockTimer
forMode: NSEventTrackingRunLoopMode];
Is there a reason you don't have these?
- sekhar
--
C. Ramakrishnan cramakrishnan@xxxxxxx