[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] CocoaDialog works, sched doesn't
On Sunday, January 12, 2003, at 12:30 PM, crucial felix wrote:
oh, use the scvm defer both in and out of the routine.
No you only defer once to get the dialog out of the SC thread.
that's also why i was using the (id) temp rather than passing it in an
arg:
because the different methods might have different numbers and types
of args etc.
and its messy calling it with the invocation.
also i forgot [temp release].
committed that.
But you don't need the retain or the release because in this case
because you never let control pass back to the event loop.
In fact I suspect the whole problem here is using
URLsFromRunningOpenPanel. This method forces Cocoa to act in a very
non-threaded modal way. I'm going to investigate an alternative way.
--
--- james mccartney james@xxxxxxxxxxxxxx <http://www.audiosynth.com>
SuperCollider - a real time synthesis programming language for the
PowerMac.
<ftp://www.audiosynth.com/pub/updates/SC2.2.16.sea.hqx>