* Source/NSButtonCell.m (-setButtonType:): Warn about unsupported

button types.
* Source/NSCell.m (-performClickWithFrame:inView:): Highlight the
cell only if drawing is possible.
This commit is contained in:
fredkiefer 2017-08-27 11:23:43 +02:00
parent e853f4fdbf
commit c72d2df3ff
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2017-08-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSButtonCell.m (-setButtonType:): Warn about unsupported
button types.
* Source/NSCell.m (-performClickWithFrame:inView:): Highlight the
cell only if drawing is possible.
2017-08-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSCell.m (-trackMouse:...untilMouseUp:): Rewrote mouse

View file

@ -819,6 +819,9 @@ typedef struct _GSButtonCellFlags
[self setBezeled: NO];
[self setImageDimsWhenDisabled: NO];
break;
default:
NSLog(@"Using unsupported button type %d", buttonType);
break;
}
}

View file

@ -1479,7 +1479,7 @@ static NSColor *dtxtCol;
[self setNextState];
if (controlView != nil)
if ((controlView != nil) && [controlView canDraw])
{
NSWindow *cvWin = [controlView window];
NSDate *limit = [NSDate dateWithTimeIntervalSinceNow: 0.1];