Changes to fix item selection when an NSImageView is present

This commit is contained in:
Gregory John Casamento 2022-11-26 07:40:34 -05:00
parent 7ee05a6869
commit c95bbcf714
2 changed files with 8 additions and 2 deletions

View file

@ -63,4 +63,4 @@ APPKIT_EXPORT_CLASS
@end
#endif /* _GNUstep_H_NSCollectionView */
#endif /* _GNUstep_H_NSCollectionViewItem */

View file

@ -1614,7 +1614,13 @@ static NSString *_placeholderItem = nil;
CGFloat alpha = [attrs alpha];
NSSize sz = [attrs size];
// set attributes of item based on currently selected layout...
// set next responder...
[[item imageView] setEnabled: NO];
[[item textField] setEnabled: NO];
[[item imageView] setNextResponder: self];
[[item textField] setNextResponder: self];
// set attributes of item based on currently selected layout...
frame.size = sz;
[v setFrame: frame];
[v setHidden: hidden];