Fixed broken cell editability in outline views by replicating NSTableView

changes r25091.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29264 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Quentin Mathe 2010-01-11 14:04:44 +00:00
parent 4195bb1f3d
commit bc821253e3
2 changed files with 8 additions and 11 deletions

View file

@ -1,3 +1,8 @@
2010-01-11 Quentin Mathe <quentin.mathe@gmail.com>
* Source/NSOutlineView.m (-editColumn:row:withEvent:select:): Fixed broken
cell editability by replicating NSTableView changes r25091.
2010-01-06 Fred Kiefer <FredKiefer@gmx.de>
* TextConverters/RTF/RTFConsumer.m (RTFDConsumer-appendImage:):

View file

@ -1412,7 +1412,6 @@ Also returns the child index relative to this parent. */
[self _autoloadExpandedItems];
}
- (void) editColumn: (int) columnIndex
row: (int) rowIndex
withEvent: (NSEvent *) theEvent
@ -1472,16 +1471,6 @@ Also returns the child index relative to this parent. */
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
row: rowIndex]];
// We really want the correct background color!
if ([_editedCell respondsToSelector: @selector(setBackgroundColor:)])
{
[(NSTextFieldCell *)_editedCell setBackgroundColor: _backgroundColor];
}
else
{
[t setBackgroundColor: _backgroundColor];
}
// But of course the delegate can mess it up if it wants
[self _willDisplayCell: _editedCell
forTableColumn: tb
@ -1503,6 +1492,9 @@ Also returns the child index relative to this parent. */
}
_textObject = [_editedCell setUpFieldEditorAttributes: t];
// FIXME: Which background color do we want here?
[_textObject setBackgroundColor: [NSColor selectedControlColor]];
[_textObject setDrawsBackground: YES];
drawingRect = [self frameOfCellAtColumn: columnIndex row: rowIndex];