I don't think there's a way to set the number of columns in an NSTableView via bindings. If you can live with a static number of columns, the rest is easy. You'll need to rewrite the tab-delimited data as entries in an array of dictionaries for the plist:
{nameOfColumn1 => row1valueForColumn1 ... nameOfColumnN => row1valueForColumnN}, {nameOfColumn1 => row2valueForColumn1 ... nameOfColumnN => row2valueForColumnN}...
And, in IB, bind the columns individually to "controller.nameOfColumnN".
Chris
On Feb 12, 2008, at 9:09 AM, Hans-Joerg Bibiko wrote:
Hi,
I have a general question. Would it be possible to create a single NIB (without external Xcode) as a table editor? Given is a file containing TAB delimited data. These data should be sent to a tm_dialog NIB as plist. In principal this should work but the number of columns and rows can differ(?) The NIB file should contain an editable NSTableView and two buttons 'Cancel' and 'Save'. By pressing the button 'Save' the current content of the NSTableView should be outputted as plist. Is this possible?
Many thanks for any hint in advance.
Hans
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