mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
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:
parent
d6cf6096dd
commit
305aaff3d1
1 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue