Bug fix for editing in cells.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5231 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-11-18 01:01:51 +00:00
parent d6cf6096dd
commit 305aaff3d1

View file

@ -510,10 +510,10 @@ static NSColor *shadowCol;
(cell_type != NSTextCellType))
return;
[textObject setDelegate: anObject];
[textObject setFrame: [self drawingRectForBounds: aRect]];
[textObject setText: [self stringValue]];
[controlView addSubview: textObject];
[textObject setText: [self stringValue]];
[textObject setDelegate: anObject];
[[controlView window] makeFirstResponder: textObject];
[textObject display];
@ -539,10 +539,10 @@ static NSColor *shadowCol;
return;
[textObject setFrame: [self drawingRectForBounds: aRect]];
[controlView addSubview: textObject];
[textObject setText: [self stringValue]];
[textObject setSelectedRange: NSMakeRange (selStart, selLength)];
[textObject setDelegate: anObject];
[controlView addSubview: textObject];
[[controlView window] makeFirstResponder: textObject];
[textObject display];
}