mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:00:38 +00:00
* 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:
parent
9d21170e10
commit
8dce386f4d
3 changed files with 22 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue