From 2cb95fe123cddf1381a28ed66804d84085706b4f Mon Sep 17 00:00:00 2001 From: ratmice Date: Sat, 23 Sep 2006 21:53:25 +0000 Subject: [PATCH] * Source/NSTableView.m (_isCellEditableColumn:row:): Allow delegate to limit editablility of editable columns. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23599 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSTableView.m | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f01127ee5..ed4023050 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-09-23 Matt Rice + + * Source/NSTableView.m (_isCellEditableColumn:row:): Allow + delegate to limit editablility of editable columns. + 2006-09-23 Richard Frith-Macdonald * Source/GSWindowDecorationView.m: coimment out dubious change. diff --git a/Source/NSTableView.m b/Source/NSTableView.m index 08193142f..5d4a04278 100644 --- a/Source/NSTableView.m +++ b/Source/NSTableView.m @@ -6026,13 +6026,13 @@ static inline float computePeriod(NSPoint mouseLocationWin, tableColumn = [_tableColumns objectAtIndex: columnIndex]; // If the column is editable, the cell always is - if (![tableColumn isEditable]) + if ([tableColumn isEditable]) { // otherwise ask the delegate, if any. return [self _shouldEditTableColumn: tableColumn row: rowIndex]; } - return YES; + return NO; } - (void) _willDisplayCell: (NSCell*)cell