Re: Updating a cell in NSTableView - it just will not draw! [SOLVED]

2008-04-20 Thread Graham Cox
Great, got it working now. Thanks a lot for the lead... to be honest pulling the dataSource's strings feels a bit hackish but at least it's confined to the controller class that is the table's dataSource, so it's a unique place in my app anyway. Works a treat ;-) I also feel I understand ta

Re: Updating a cell in NSTableView - it just will not draw!

2008-04-20 Thread Jens Alfke
On 20 Apr '08, at 10:40 PM, Graham Cox wrote: So the question is: is there a way to trigger the reload of just a single row? This isn't necessarily the selected row... if I just mark for update the cell rect for the row/column is NSTableView smart enough to only request the data for that r

Re: Updating a cell in NSTableView - it just will not draw!

2008-04-20 Thread Graham Cox
Aha - I think you've hit the nail on the head. You say "remember" but I don't think I realised this. In this case updating the data model is not really what I want - for one thing it's quite expensive (potentially) and for another it makes more sense to set the data model on the mouse-up af

Re: Updating a cell in NSTableView - it just will not draw!

2008-04-20 Thread Jens Alfke
On 20 Apr '08, at 9:33 PM, Graham Cox wrote: The problem I'm having is that when the menu is used to update the cell in the table view, I just cannot get the darn thing to redraw. At all. (at least until after the menu tracking returns and it goes away). I've tried: Remember, a table vie