he problem is that on very large strings sizeWithAttributes comes up
short [no pun intended]
How much too short? Is it less than 1 pixel?
float tiw = [self stringPixelWidth:[records
objectAtIndex:i]];
if(tiw > maxWidth){
maxWidth = tiw;
}
[...]
[[[myTableView tableColumns] objectAtIndex:0]
setWidth:maxWidth];
I think table columns are expected to have integer widths, so you have
to round up to the next integer, e.g. like that:
[[[myTableView tableColumns] objectAtIndex:0] setWidth:ceilf(maxWidth)];
Mani
--
http://mani.de - friendly software
iVolume - listen to music freehand
LittleSecrets - the encrypted notepad
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]