[TxMt] Re: DIALOG - wait for input as a loop

Hans-Joerg Bibiko bibiko at eva.mpg.de
Tue Jul 8 10:51:56 UTC 2008


On 8 Jul 2008, at 10:11, Hans-Joerg Bibiko wrote:

> Hi,
>
> 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?
Sorry. It is much easier than I thought. I solved that problem. ;)

--Hans



More information about the textmate mailing list