subclass initImageCell, so that RefusesFirstResponder can be set, matching Mac.

This commit is contained in:
Riccardo Mottola 2022-03-22 22:52:06 +01:00
parent def2c9765d
commit 6ec6f20f19
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2022-03-22 Riccardo Mottola <rm@gnu.org>
* Source/NSImageCell.m: subclass initImageCell, so that
RefusesFirstResponder can be set, matching Mac.
2022-02-26 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSPopUpButtonCell.m(setMenu:): Select the first item of

View file

@ -2,7 +2,7 @@
<abstract>The image cell class</abstract>
Copyright (C) 1999, 2005 Free Software Foundation, Inc.
Copyright (C) 1999, 2005-2022 Free Software Foundation, Inc.
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
Date: 1999
@ -63,6 +63,15 @@
return [self initImageCell: nil];
}
- (id) initImageCell: (NSImage*)anImage
{
if (self = [super initImageCell: anImage])
{
[self setRefusesFirstResponder:YES];
}
return self;
}
- (void) setImage:(NSImage *)anImage
{
[super setImage:anImage];