• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Partial redraw of NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Partial redraw of NSTableView (From: Hamish Allan <email@hidden>)

  • Prev by Date: Re: Core Data and undo action names
  • Next by Date: NSTask & GREP problems
  • Previous by thread: Partial redraw of NSTableView
  • Next by thread: Code signing
  • Index(es):
    • Date
    • Thread