mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-03 17:40:43 +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
e69357019b
commit
d6d1259da3
1 changed files with 3 additions and 3 deletions
|
@ -510,10 +510,10 @@ static NSColor *shadowCol;
|
||||||
(cell_type != NSTextCellType))
|
(cell_type != NSTextCellType))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
[textObject setDelegate: anObject];
|
|
||||||
[textObject setFrame: [self drawingRectForBounds: aRect]];
|
[textObject setFrame: [self drawingRectForBounds: aRect]];
|
||||||
[textObject setText: [self stringValue]];
|
|
||||||
[controlView addSubview: textObject];
|
[controlView addSubview: textObject];
|
||||||
|
[textObject setText: [self stringValue]];
|
||||||
|
[textObject setDelegate: anObject];
|
||||||
[[controlView window] makeFirstResponder: textObject];
|
[[controlView window] makeFirstResponder: textObject];
|
||||||
[textObject display];
|
[textObject display];
|
||||||
|
|
||||||
|
@ -539,10 +539,10 @@ static NSColor *shadowCol;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
[textObject setFrame: [self drawingRectForBounds: aRect]];
|
[textObject setFrame: [self drawingRectForBounds: aRect]];
|
||||||
|
[controlView addSubview: textObject];
|
||||||
[textObject setText: [self stringValue]];
|
[textObject setText: [self stringValue]];
|
||||||
[textObject setSelectedRange: NSMakeRange (selStart, selLength)];
|
[textObject setSelectedRange: NSMakeRange (selStart, selLength)];
|
||||||
[textObject setDelegate: anObject];
|
[textObject setDelegate: anObject];
|
||||||
[controlView addSubview: textObject];
|
|
||||||
[[controlView window] makeFirstResponder: textObject];
|
[[controlView window] makeFirstResponder: textObject];
|
||||||
[textObject display];
|
[textObject display];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue