mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Remove method, minor cleanup, per discussion with @fredkiefer
This commit is contained in:
parent
52eef305b0
commit
ad75804102
5 changed files with 12 additions and 13 deletions
|
@ -38,8 +38,6 @@ extern "C" {
|
|||
NSTreeController *_controller;
|
||||
}
|
||||
|
||||
+ (NSMutableDictionary *) dictionaryWithChildren: (NSMutableArray *)children;
|
||||
|
||||
- (instancetype) initWithContent: (id)content
|
||||
withController: (id)controller;
|
||||
|
||||
|
|
|
@ -33,18 +33,15 @@
|
|||
|
||||
@implementation GSControllerTreeProxy
|
||||
|
||||
+ (NSMutableDictionary *) dictionaryWithChildren: (NSMutableArray *)children
|
||||
{
|
||||
return [NSMutableDictionary dictionaryWithObject: children
|
||||
forKey: @"children"];
|
||||
}
|
||||
|
||||
- (instancetype) initWithContent: (id)content
|
||||
withController: (id)controller
|
||||
{
|
||||
self = [super initWithRepresentedObject:
|
||||
[GSControllerTreeProxy
|
||||
dictionaryWithChildren: content]];
|
||||
NSMutableDictionary *dict =
|
||||
[NSMutableDictionary dictionaryWithObject:
|
||||
[NSMutableArray arrayWithArray: children]
|
||||
forKey: @"children"];
|
||||
|
||||
self = [super initWithRepresentedObject: dict];
|
||||
if (self != nil)
|
||||
{
|
||||
ASSIGN(_controller, controller);
|
||||
|
|
|
@ -1789,6 +1789,10 @@ Also returns the child index relative to this parent. */
|
|||
if (theBinding != nil)
|
||||
{
|
||||
[self _indexPathsFromSelectedRows];
|
||||
if ([observedObject respondsToSelector: @selector(setSelectionIndexPaths:)])
|
||||
{
|
||||
[observedObject setSelectionIndexPaths: _selectedIndexPaths];
|
||||
}
|
||||
[theBinding reverseSetValue: _selectedIndexPaths];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -231,7 +231,7 @@
|
|||
[selectedObjects addObject: obj];
|
||||
}
|
||||
END_FOR_IN(_selection_index_paths);
|
||||
|
||||
|
||||
return selectedObjects;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSSortDescriptor.h>
|
||||
|
||||
#import <AppKit/NSTreeNode.h>
|
||||
#import "AppKit/NSTreeNode.h"
|
||||
|
||||
@interface NSTreeNode (Private)
|
||||
- (NSMutableArray*) _childNodes;
|
||||
|
|
Loading…
Reference in a new issue