Tiny updates for changings in NSTextFieldCell

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5161 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 1999-11-11 23:18:23 +00:00
parent 194ea34554
commit 1ecf4c080a

View file

@ -38,8 +38,6 @@
#include <AppKit/NSApplication.h> #include <AppKit/NSApplication.h>
#include <AppKit/NSCursor.h> #include <AppKit/NSCursor.h>
@implementation NSTextField @implementation NSTextField
// //
@ -164,9 +162,15 @@ id _nsTextfieldCellClass = nil;
// //
- (void) selectText: (id)sender - (void) selectText: (id)sender
{ {
if ([[self window] makeFirstResponder: self]) // TODO
[cell selectText: sender]; /*
[self setNeedsDisplay: YES]; if (window)
{
if ([window makeFirstResponder: self])
[cell selectText: sender];
[self setNeedsDisplay: YES];
}
*/
} }
// //
@ -367,8 +371,8 @@ fprintf(stderr, " TextField mouseDown --- ");
// only for it. // only for it.
if (key_code == 0x0d) if (key_code == 0x0d)
{ {
[window selectKeyViewFollowingView: self];
[self sendAction: [cell action] to: [cell target]]; [self sendAction: [cell action] to: [cell target]];
[window selectKeyViewFollowingView: self];
return; return;
} }
@ -423,7 +427,7 @@ fprintf(stderr, " TextField mouseDown --- ");
{ {
if ([self isSelectable] || [self isEditable]) if ([self isSelectable] || [self isEditable])
{ {
[cell selectText: self]; [self selectText: self];
return YES; return YES;
} }
else else