Fixed bug in seperator double-click when using formatters.
This commit is contained in:
parent
bb7de6897e
commit
9bf75801b4
1 changed files with 5 additions and 5 deletions
|
@ -34,10 +34,9 @@
|
||||||
|
|
||||||
if (clickedSeperator) {
|
if (clickedSeperator) {
|
||||||
NSTableColumn *col = [[[self tableView] tableColumns] objectAtIndex:column];
|
NSTableColumn *col = [[[self tableView] tableColumns] objectAtIndex:column];
|
||||||
|
|
||||||
//Info about the font and such
|
//Info about the font and such
|
||||||
NSCell *cell = [col dataCell];
|
NSCell *cell = [col dataCell];
|
||||||
NSAttributedString * as = [cell attributedStringValue];
|
|
||||||
|
|
||||||
//Binding info...reaching deep!
|
//Binding info...reaching deep!
|
||||||
NSDictionary *bindingInfo = [col infoForBinding:@"value"];
|
NSDictionary *bindingInfo = [col infoForBinding:@"value"];
|
||||||
|
@ -48,9 +47,10 @@
|
||||||
id row;
|
id row;
|
||||||
NSEnumerator *enumerator = [boundArray objectEnumerator];
|
NSEnumerator *enumerator = [boundArray objectEnumerator];
|
||||||
while (row = [enumerator nextObject]) {
|
while (row = [enumerator nextObject]) {
|
||||||
NSString *s = [row description];
|
|
||||||
|
[cell setObjectValue:row];
|
||||||
float width = [s sizeWithAttributes:[as attributesAtIndex:0 effectiveRange:nil]].width;
|
|
||||||
|
float width = [cell cellSize].width;
|
||||||
if (width > max_width)
|
if (width > max_width)
|
||||||
max_width = width;
|
max_width = width;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue