• 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: TableView refresh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TableView refresh


  • Subject: Re: TableView refresh
  • From: "Erik M. Buck" <email@hidden>
  • Date: Wed, 6 Feb 2002 11:09:01 -0600

> As others have pointed out, it's usually not necessary to optimize this,
> but here ya go:
>
> Use NSTableView's frameOfCellAtColumn:row: to get the rect for that
> cell, then call setNeedsDisplayInRect: passing that rect. This will
> cause the table to reload that particular cell.
>

Unfortunately, Apple broke the -setNeedsDisplayInRect: implementation so
badly that calling it in this context will probably result in the whole
table (probably the whole window) being redrawn anyway. Use -displayInRect:
instead even though it is counter to good practices in prior display systems
that I won't mention. The sad part is that if Apple ever does fix their
bone headed implementation of -setNeedsDisplayInRect: it won't help many
applications because they have been forced to use -displayInRect: to work
around Apple's bone headedness.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: TableView refresh (From: Glen Simmons <email@hidden>)

  • Prev by Date: Re: Transparent Button
  • Next by Date: NSMovie and resizing
  • Previous by thread: Re: TableView refresh
  • Next by thread: RE: TableView refresh
  • Index(es):
    • Date
    • Thread