*sniff*...
I have thrown together a "modal" module for the three platforms so that a single cross-platform method sets a window to modal.
Yes, that's right, there's no way to set a window to modal in Max natively (yet, I suppose).
Anyhoo... all seems to be well on win32... but on the Mac, a timer on a modal window NEVER fires...
I have a canvas on this window, and if I drag my mouse over it, it creates lots of mouse events. If I move the window I get events... but my Timer does nothing.
Am I right to presume that using runModalForWindow is somehow locking out the events generation for the timer?
I had thought that since the timer is created *inside* the modal window that it would work as normal...
The other option appears to be to use "runModalSession" instead, but that takes the loop out of max and puts it in Objective C... and I don't want to hack around with that only to find it doesn't work anyway ;-)
So, assuming I can't use a Timer (to force the refresh of my canvas), what other options do I have open to me?
@Mark : This cross-platform balancing act must do your head in !! :-p
I have thrown together a "modal" module for the three platforms so that a single cross-platform method sets a window to modal.
Yes, that's right, there's no way to set a window to modal in Max natively (yet, I suppose).
Anyhoo... all seems to be well on win32... but on the Mac, a timer on a modal window NEVER fires...
I have a canvas on this window, and if I drag my mouse over it, it creates lots of mouse events. If I move the window I get events... but my Timer does nothing.
Am I right to presume that using runModalForWindow is somehow locking out the events generation for the timer?
I had thought that since the timer is created *inside* the modal window that it would work as normal...
The other option appears to be to use "runModalSession" instead, but that takes the loop out of max and puts it in Objective C... and I don't want to hack around with that only to find it doesn't work anyway ;-)
So, assuming I can't use a Timer (to force the refresh of my canvas), what other options do I have open to me?
@Mark : This cross-platform balancing act must do your head in !! :-p