Re: Updating a cell in NSTableView - it just will not draw! [SOLVED]
Re: Updating a cell in NSTableView - it just will not draw! [SOLVED]
- Subject: Re: Updating a cell in NSTableView - it just will not draw! [SOLVED]
- From: Graham Cox <email@hidden>
- Date: Mon, 21 Apr 2008 16:08:43 +1000
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 tables a lot better suddenly...
G.
On 21 Apr 2008, at 3:48 pm, Jens Alfke wrote:
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 row/column?
Yup. You don't need to explicitly tell the table to reload the data
for a row, because it doesn't cache it. It asks the dataSource every
time it needs to display any cells. (The only thing the table caches
is the number of rows.)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden