Re: cocoa-dev digest, Vol 2 #4493 - 14 msgs
Re: cocoa-dev digest, Vol 2 #4493 - 14 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #4493 - 14 msgs
- From: Steven Spencer <email@hidden>
- Date: Fri, 16 Jul 2004 20:17:39 +0100
A tableview displays its data in cells as mentioned in the datasource
documentation :
Note: tableView:objectValueForTableColumn:row: is called each time the
table cell needs to be redisplayed, so it must be efficient.
and in "Cocoa Programming for Mac OS X" (Edition 1) by Aaron Hillegass
page 204
I use the cell height instead of the font height, because of the
clipping issues when using certain fonts.
I've always found a reload is necessary after setRowHeight, despite the
documentation stating tile is invoked.
Perhaps this has changed in a recent OS update - I haven't checked.
- Steve
On 16 Jul 2004, at 17:28, Jerry LeVan wrote:
Yes, much nicer, thank you. Was this the voice
of experience?
Note setRowHeight automatically calls tile.
Jerry
On Jul 16, 2004, at 11:17 AM, email@hidden wrote:
[table setRowHeight:[[[columns objectAtIndex:0] dataCell]
cellSize].height];
[table reloadData];
_______________________________________________
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.