diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-03-31 17:42:16 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-03-31 17:42:16 +0000 |
commit | bb70e8aac1d86585e1cb2ad56c440f0298858c9f (patch) | |
tree | 148c88ce52843b5c0e70ccba7c6a9a794097787c /Source/SPNarrowDownCompletion.m | |
parent | 8d435e0e10c45bbd502730d6580fce4ffc7de77e (diff) | |
download | sequelpro-bb70e8aac1d86585e1cb2ad56c440f0298858c9f.tar.gz sequelpro-bb70e8aac1d86585e1cb2ad56c440f0298858c9f.tar.bz2 sequelpro-bb70e8aac1d86585e1cb2ad56c440f0298858c9f.zip |
• fixed issue for completion window if animated sync icon is shown
- init all column' data cells according to their settings to avoid jittering and font size change
- this fix also removed one issue for 'overlapping' completion windows
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r-- | Source/SPNarrowDownCompletion.m | 31 |
1 files changed, 25 insertions, 6 deletions
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 { |