Fixed bug in seperator double-click when using formatters.

CQTexperiment
vspader 2008-01-24 02:33:55 +00:00
parent bb7de6897e
commit 9bf75801b4
1 changed files with 5 additions and 5 deletions

View File

@ -34,10 +34,9 @@
if (clickedSeperator) {
NSTableColumn *col = [[[self tableView] tableColumns] objectAtIndex:column];
//Info about the font and such
NSCell *cell = [col dataCell];
NSAttributedString * as = [cell attributedStringValue];
//Binding info...reaching deep!
NSDictionary *bindingInfo = [col infoForBinding:@"value"];
@ -48,9 +47,10 @@
id row;
NSEnumerator *enumerator = [boundArray objectEnumerator];
while (row = [enumerator nextObject]) {
NSString *s = [row description];
float width = [s sizeWithAttributes:[as attributesAtIndex:0 effectiveRange:nil]].width;
[cell setObjectValue:row];
float width = [cell cellSize].width;
if (width > max_width)
max_width = width;
}