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

Allan Odgaard throw-away-1 at macromates.com
Mon Aug 6 17:13:03 UTC 2007


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.




More information about the textmate mailing list