From: Jonathan P. <jp...@dc...> - 2005-08-25 14:37:51
|
On 25 Aug 2005, at 15:15, Karl-Heinz Wild wrote: > In the Window I've created a NSTableView with a bind toe the > Controller > Outlet - FileTableView => NSTableView( Files ) > > In the original source I click on the + Button an select one or > more files > in the dialog. After pressing OK the files will be in the > FileTableView. > > Not so in my rewritten code. I've added some debuging statements > and all > seem ok, except the files will not be written to the FileTableView. Did you also connect the Controller as the dataSource for the NSTableView? i.e., control-drag from the table view to the Controller instance and choose dataSource. That could explain the behaviour you're seeing. Also, when making connections to the NSTableView, make sure that it really is the NSTableView that's being selected - I often accidentally create connections to the NSTableColumn, since it's far easier to select. Hope that helps, Jonathan |