From: Jonathan P. <jp...@dc...> - 2005-12-09 10:20:32
|
On 9 Dec 2005, at 6:55, Steven D.Arnold wrote: > Any idea what might be going on here? BTW, very similar logic > works in Python using PyObjC. I don't see anywhere in your code where you add a new row to the NSTableView. The error you're seeing occurs because the row being asked for doesn't exist. Is your NSTableView populated using a datasource or bindings? With a datasource, I think you may have to add a prototype element to the datasource and call tableView.reloadData. After that, you can hopefully select the new row. With bindings, you add a new row by going through the NSTableView's NSArrayController (you can bind insert: directly to a button's action). Can you give an example of the PyObjC code that works? Cheers, Jonathan |