* Source/NSTextField.m (-mouseDown:): Check if the control is

disabled. (bug #13916)
        (-acceptFirstResponder:): Return no if disabled.
        (-acceptFirstMouse:): Ditto.
        * Source/NSTextFieldCell.m (-setEnabled:): Reset the string 
	value to an empty string if disabling.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23574 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-09-20 20:04:31 +00:00
parent 9d21170e10
commit 8dce386f4d
3 changed files with 22 additions and 3 deletions

View file

@ -176,6 +176,16 @@ static NSColor *txtCol;
return _text_color;
}
/** <p>Enables or Disables the cell. If disabling the cell, resets its string
value to an empty string.</p>
*/
- (void) setEnabled:(BOOL)flag
{
[super setEnabled:flag];
if (flag == NO)
[self setStringValue:@""];
}
- (NSText *) setUpFieldEditorAttributes: (NSText *)textObject
{
textObject = [super setUpFieldEditorAttributes: textObject];