[TxMt] tm_dialog: call a other tm_dialog from tm_dialog without closing the first

Hans-Jörg Bibiko bibiko at eva.mpg.de
Mon Aug 6 17:22:02 UTC 2007


On 06.08.2007, at 19:13, Allan Odgaard wrote:
> On 6. Aug 2007, at 14:00, Hans-Joerg Bibiko wrote:
>> [...]
>> If I invoke it via
>>
>> "$DIALOG" -a the_nib
>>
>> the dialog appears. Then I call (my token is 3)
>>
>> "$DIALOG" -w 3
>>
>> the dialog/TM hangs. The dialog (a panel) doesn't accept any  
>> event. I only can press APPLE+. to cancel.
>> As a window it returns (async) Window 3: error 1
> It hangs because -w will make "$DIALOG" stall until an action is  
> performed in the window, but since you run it from TM, the main  
> thread (in TM) will wait for your command to finish, and thus block  
> the UI.
>
> Try instead run it in a shell -- in practice you’d run it in a  
> command that detaches.
>

Arrgh. Yes, of course. Many thanks.

Hans


More information about the textmate mailing list