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

@ -689,7 +689,9 @@ static NSImage *unexpandable = nil;
CHECK_REQUIRED_METHOD(outlineView:child:ofItem:);
CHECK_REQUIRED_METHOD(outlineView:isItemExpandable:);
CHECK_REQUIRED_METHOD(outlineView:numberOfChildrenOfItem:);
CHECK_REQUIRED_METHOD(outlineView:objectValueForTableColumn:byItem:);
// This method is @optional in NSOutlineViewDataSource as of macOS10.0
// CHECK_REQUIRED_METHOD(outlineView:objectValueForTableColumn:byItem:);
// Is the data source editable?
_dataSource_editable = [anObject respondsToSelector: