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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate