Add 10.12 imageViewWithImage to NSImageView, show outline view image to let the user know the item is expandable

This commit is contained in:
Gregory John Casamento 2024-04-21 09:49:37 -04:00
parent 9da7bd4502
commit 5d17658b0e
4 changed files with 21 additions and 3 deletions

View file

@ -69,6 +69,18 @@ static Class imageCellClass;
usedCellClass = factoryId ? factoryId : imageCellClass;
}
+ (instancetype) imageViewWithImage: (NSImage *)image
{
NSImageView *imageView = AUTORELEASE([[NSImageView alloc] init]);
[imageView setImage: image];
return imageView;
}
//
// Instance methods
//
- (id) initWithFrame: (NSRect)aFrame
{