mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 11:20:48 +00:00
Add 10.12 imageViewWithImage to NSImageView, show outline view image to let the user know the item is expandable
This commit is contained in:
parent
9da7bd4502
commit
5d17658b0e
4 changed files with 21 additions and 3 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue