mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Better setup of editing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3738 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
67d34b8556
commit
18aa64b17e
1 changed files with 16 additions and 16 deletions
|
@ -318,25 +318,25 @@ NSString* number_string = [[NSNumber numberWithInt:anInt] stringValue];
|
|||
return nil;
|
||||
}
|
||||
|
||||
- (void)editWithFrame:(NSRect)aRect
|
||||
inView:(NSView *)controlView
|
||||
editor:(NSText *)textObject
|
||||
delegate:(id)anObject
|
||||
event:(NSEvent *)theEvent
|
||||
- (void) editWithFrame: (NSRect)aRect
|
||||
inView: (NSView *)controlView
|
||||
editor: (NSText *)textObject
|
||||
delegate: (id)anObject
|
||||
event: (NSEvent *)theEvent
|
||||
{
|
||||
if (cell_type != NSTextCellType)
|
||||
return;
|
||||
if (cell_type != NSTextCellType)
|
||||
return;
|
||||
|
||||
[[controlView window] makeFirstResponder:textObject];
|
||||
[controlView lockFocus];
|
||||
[[controlView window] makeFirstResponder: textObject];
|
||||
|
||||
[textObject setFrame:aRect];
|
||||
[textObject setText:[self stringValue]];
|
||||
[textObject setDelegate:anObject];
|
||||
[controlView addSubview:textObject];
|
||||
[controlView lockFocus];
|
||||
NSEraseRect(aRect);
|
||||
[controlView unlockFocus];
|
||||
[textObject display];
|
||||
[textObject setText: [self stringValue]];
|
||||
[textObject setDelegate: anObject];
|
||||
[controlView addSubview: textObject];
|
||||
[textObject setFrame: aRect];
|
||||
NSEraseRect(aRect);
|
||||
[textObject display];
|
||||
[controlView unlockFocus];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue