mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 12:00:45 +00:00
subclass initImageCell, so that RefusesFirstResponder can be set, matching Mac.
This commit is contained in:
parent
def2c9765d
commit
6ec6f20f19
2 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue