[TxMt] DIALOG - wait for input as a loop

Hans-Joerg Bibiko bibiko at eva.mpg.de
Tue Jul 8 08:11:15 UTC 2008


sorry if this question will be asked again but I didn't find something  
relevant in the mailing list.

Supposing I have a NIB with five buttons. One of them is a Cancel  
button and all others are named 1 to 4.

I open that NIB asynchronously. Fine.
But now I want to write a script which listens at that NIB window to  
get the button code which is pressed.
If the Cancel button is pressed I want to destroy that NIB window. Fine.
If one of the button 1 to 4 is pressed I want to execute a command  
depending on what button is pressed but the NIB window should be kept  
on the screen and waits for further input from the user.

Is this theoretically possible?

Thanks in advance,


More information about the textmate mailing list