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?
Thanks in advance,
--Hans
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