From 007dd2db0070f92f5867ea4610195ffaf90442f0 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Tue, 12 Feb 2013 22:01:02 +0100 Subject: [PATCH] =?UTF-8?q?Use=20=E2=80=98refuses=20first=20responder?= =?UTF-8?q?=E2=80=99=20property?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We still need the subclass for rendering the control as active, but the less we override the better. --- Frameworks/OakFilterList/src/FileChooser.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Frameworks/OakFilterList/src/FileChooser.mm b/Frameworks/OakFilterList/src/FileChooser.mm index ae140d4f..b1fdb737 100644 --- a/Frameworks/OakFilterList/src/FileChooser.mm +++ b/Frameworks/OakFilterList/src/FileChooser.mm @@ -33,8 +33,6 @@ static NSButton* OakCreateScopeButton (NSString* label, SEL action, NSUInteger t @end @implementation OakNonActivatingTableView -- (BOOL)acceptsFirstResponder { return NO; } - - (NSCell*)preparedCellAtColumn:(NSInteger)column row:(NSInteger)row { OFBPathInfoCell* res = (OFBPathInfoCell*)[super preparedCellAtColumn:column row:row]; @@ -244,6 +242,7 @@ static path::glob_list_t globs_for_path (std::string const& path) _tableView.focusRingType = NSFocusRingTypeNone; _tableView.allowsEmptySelection = NO; _tableView.allowsMultipleSelection = YES; + _tableView.refusesFirstResponder = YES; _tableView.doubleAction = @selector(accept:); _tableView.target = self; _tableView.dataSource = self;