Re: NSTableView bottleneck
Re: NSTableView bottleneck
- Subject: Re: NSTableView bottleneck
- From: Ryan Stevens <email@hidden>
- Date: Thu, 4 Aug 2005 08:10:46 -0700
Karl,
To update an entire row....
NSRect rowRect = [yourTable rectOfRow:rowNeedingReloaded];
[yourTable setNeedsDisplayInRect:rowRect];
Or if you want a specific row in a specific column only..
NSRect rowRect = [yourTable rectOfRow:rowNeedingReloaded];
NSRect colRect = [yourTable rectOfColumn:aTableColumn];
[yourTable setNeedsDisplayInRect:NSIntersectionRect(rowRect, colRect)];
On Aug 4, 2005, at 2:19 AM, A. Karl Keller wrote:
I've got an NSTableView bottleneck. Many rows of the table can be
seen at once, and I need to keep one NSCell of the table synced to
a user editable NSTextView. If I call reloadData after each
keystroke, its lags behind the user. Does anyone have a subclass
or category for NSTableView that allows a single NSCell to be
reloaded?
_______________________________________________
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