diff options
-rw-r--r-- | Source/SPNarrowDownCompletion.h | 2 | ||||
-rw-r--r-- | Source/SPNarrowDownCompletion.m | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Source/SPNarrowDownCompletion.h b/Source/SPNarrowDownCompletion.h index 020340a8..670d1a29 100644 --- a/Source/SPNarrowDownCompletion.h +++ b/Source/SPNarrowDownCompletion.h @@ -32,7 +32,7 @@ @class SPDatabaseStructure; -@interface SPNarrowDownCompletion : NSWindow <NSTableViewDelegate, NSTableViewDataSource, NSTokenFieldCellDelegate> +@interface SPNarrowDownCompletion : NSWindow <NSTableViewDelegate, NSTableViewDataSource> { NSArray* suggestions; NSMutableString* mutablePrefix; diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index fd6fd38c..af5b2428 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -163,6 +163,9 @@ SPClear(mutablePrefix); SPClear(textualInputCharacters); SPClear(originalFilterString); + [theTableView setDataSource:nil]; + [theTableView setDelegate:nil]; + SPClear(theTableView); if (staticPrefix) SPClear(staticPrefix); if (syncArrowImages) SPClear(syncArrowImages); if (suggestions) SPClear(suggestions); @@ -353,7 +356,7 @@ [[scrollView verticalScroller] setControlSize:NSSmallControlSize]; [[scrollView horizontalScroller] setControlSize:NSSmallControlSize]; - theTableView = [[[NSTableView alloc] initWithFrame:NSZeroRect] autorelease]; + theTableView = [[NSTableView alloc] initWithFrame:NSZeroRect]; [theTableView setFocusRingType:NSFocusRingTypeNone]; [theTableView setAllowsEmptySelection:YES]; [theTableView setHeaderView:nil]; @@ -557,7 +560,6 @@ [b setEditable:NO]; [b setAlignment:NSRightTextAlignment]; [b setFont:[NSFont systemFontOfSize:11]]; - [b setDelegate:self]; return b; } |