[TxMt] tm_dialog: How to handle several buttons?
Hans-Joerg Bibiko
bibiko at eva.mpg.de
Mon Oct 30 23:35:32 UTC 2006
>> is there any way to distinguish what button was pressed if I have
>> more of them?
>>
>> E.g. you want to ask the user; two buttons 'Yes' and 'No'. How can
>> you return that?
>
> If you set the tag (in the attributes part of the Show Inspector
> palette) to a number, that number is returned both as tm_dialog's
> exit code, and as a returnCode key/value pair in the property list
> which is returned.
>
[...]
Thanks!! It works brilliant.
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the textmate
mailing list