mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Bugfix suggested by stark@easynet.fr
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3534 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5e8b545ae1
commit
1a74180b45
2 changed files with 15 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jan 6 21:45:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSCell.m: ([-endEditing]) modified as suggested by
|
||||
stark@easynet.fr to prevent recursion - clear delegate at start.
|
||||
|
||||
Wed Jan 6 17:35:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSApplication.m: minor fix for updating windows menu items.
|
||||
|
|
|
@ -336,12 +336,16 @@ NSString* _string;
|
|||
[textObject display];
|
||||
}
|
||||
|
||||
- (void)endEditing:(NSText *)textObject // editing is complete,
|
||||
{ // remove the text obj
|
||||
[textObject removeFromSuperview]; // acting as the field
|
||||
[self setStringValue: [textObject text]]; // editor from window's
|
||||
[textObject setDelegate:nil]; // view heirarchy, set
|
||||
} // our contents from it
|
||||
/*
|
||||
* editing is complete, remove the text obj acting as the field
|
||||
* editor from window's view heirarchy, set our contents from it
|
||||
*/
|
||||
- (void)endEditing:(NSText *)textObject
|
||||
{
|
||||
[textObject setDelegate:nil];
|
||||
[textObject removeFromSuperview];
|
||||
[self setStringValue: [textObject text]];
|
||||
}
|
||||
|
||||
- (void)selectWithFrame:(NSRect)aRect
|
||||
inView:(NSView *)controlView
|
||||
|
|
Loading…
Reference in a new issue