[TxMt] Multiple arguments in tm_dialog

Brett Terpstra brett at circlesixdesign.com
Tue Apr 24 22:00:17 UTC 2007


Thanks Chris, that was so much easier than I thought it would be ;).

Brett

On Apr 24, 2007, at 12:22 PM, Chris Thomas wrote:

>
> On Apr 24, 2007, at 10:46 AM, Brett Terpstra wrote:
>
>> I know this was briefly covered once, but I'm afraid I'm not  
>> getting it.  If I want to return two arguments with  
>> returnArgument:, how do I change the name of the selector to pass  
>> them?
>
> You need one colon-terminated name segment per argument.
>
> 	returnArgument:secondArgument:
>
> The plist you get back from tm_dialog will contain a "result"  
> dictionary {"returnArgument" => <value>, "secondArgument" => <value>}.
>
> The first segment must be "returnArgument:", you may set the others  
> to whatever you like. Four arguments:
>
> 	returnArgument:greenEggs:andHam:withAMouse:
>
> The result will be a dictionary with keys {returnArgument,  
> greenEggs, andHam, withAMouse}.
>
> Chris
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list