Re: TableView refresh
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.