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:
Nicola Pero 1999-11-11 23:18:23 +00:00
parent 710a5a92da
commit ad361d87ca

View file

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