Re: Partial redraw of NSTableView
Re: Partial redraw of NSTableView
- Subject: Re: Partial redraw of NSTableView
- From: Ryan Stevens <email@hidden>
- Date: Mon, 22 Aug 2005 20:37:24 -0700
To redraw an entire row....
NSRect rowRect = [yourTable rectOfRow:rowNeedingRedisplay];
[yourTable setNeedsDisplayInRect:rowRect];
Or if you want to redraw a specific row in a specific column only..
NSRect rowRect = [yourTable rectOfRow:rowNeedingRedisplay];
NSRect colRect = [yourTable rectOfColumn:aTableColumn];
[yourTable setNeedsDisplayInRect:NSIntersectionRect(rowRect, colRect)];
On Aug 22, 2005, at 5:47 PM, Hamish Allan wrote:
Hi all,
Is there a way of marking only part of an NSTableView as needing
redrawn? [tableView reloadData] seems like overkill if I know that
only one cell's contents have changed.
Thanks,
Hamish
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden