[TxMt] tm_dialog quandry (returning array selections)
Brett Terpstra
brett at circlesixdesign.com
Sat Nov 18 11:14:40 UTC 2006
Ah, it was the returnArgument: I needed, I think. Thanks, Allan!
Brett
On Nov 18, 2006, at 5:07 AM, Allan Odgaard wrote:
>
> Do I spot two questions here:
>
> Q: How do I know which items in an array was edited?
> A: No other way than iterate the data and compare with the original
>
> Q: How do I get the selected item back
> A: Bind your okay button’s target to selection.controller
> [NSObjectController]
> Bind the first argument to the selected object from the root
> array controller
> Put returnArgument: as the selector for one of the above two
> bindings.
>
> See http://lists.macromates.com/pipermail/textmate/2006-
> November/015321.html for more verbose explanation.
More information about the textmate
mailing list