From bb70e8aac1d86585e1cb2ad56c440f0298858c9f Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 31 Mar 2010 17:42:16 +0000 Subject: =?UTF-8?q?=E2=80=A2=C2=A0fixed=20issue=20for=20completion=20windo?= =?UTF-8?q?w=20if=20animated=20sync=20icon=20is=20shown=20-=20init=20all?= =?UTF-8?q?=20column'=20data=20cells=20according=20to=20their=20settings?= =?UTF-8?q?=20to=20avoid=20jittering=20and=20font=20size=20change=20-=20th?= =?UTF-8?q?is=20fix=20also=20removed=20one=20issue=20for=20'overlapping'?= =?UTF-8?q?=20completion=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPNarrowDownCompletion.m | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'Source') diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index bfe3db99..0b77e359 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -165,7 +165,7 @@ [stateTimer release]; stateTimer = nil; if(syncArrowImages) [syncArrowImages release]; - [self performSelectorOnMainThread:@selector(reInvokeCompletion) withObject:nil waitUntilDone:YES]; + [self performSelectorOnMainThread:@selector(reInvokeCompletion) withObject:nil waitUntilDone:NO]; closeMe = YES; return; } @@ -449,13 +449,21 @@ return @""; } else if([[aTableColumn identifier] isEqualToString:@"name"]) { - if(rowIndex == -1) return @"fetching structure…"; - [[aTableColumn dataCell] setFont:[NSFont systemFontOfSize:12]]; + if(rowIndex == -1) return @"fetching structure…"; return [[filtered objectAtIndex:rowIndex] objectForKey:@"display"]; } else if ([[aTableColumn identifier] isEqualToString:@"list"]) { - if(rowIndex == -1) return @""; + if(rowIndex == -1) { + NSPopUpButtonCell *b = [[NSPopUpButtonCell new] autorelease]; + [b setPullsDown:NO]; + [b setArrowPosition:NSPopUpNoArrow]; + [b setControlSize:NSMiniControlSize]; + [b setFont:[NSFont systemFontOfSize:11]]; + [b setBordered:NO]; + [aTableColumn setDataCell:b]; + return @""; + } if(dictMode) { return @""; } else { @@ -483,7 +491,9 @@ } } else if([[aTableColumn identifier] isEqualToString:@"type"]) { - if(rowIndex == -1) return @""; + if(rowIndex == -1) { + return @""; + } if(dictMode) { return @""; } else { @@ -496,7 +506,16 @@ } } else if ([[aTableColumn identifier] isEqualToString:@"path"]) { - if(rowIndex == -1) return @""; + if(rowIndex == -1) { + NSPopUpButtonCell *b = [[NSPopUpButtonCell new] autorelease]; + [b setPullsDown:NO]; + [b setArrowPosition:NSPopUpNoArrow]; + [b setControlSize:NSMiniControlSize]; + [b setFont:[NSFont systemFontOfSize:11]]; + [b setBordered:NO]; + [aTableColumn setDataCell:b]; + return @""; + } if(dictMode) { return @""; } else { -- cgit v1.2.3