Update headers

This commit is contained in:
Gregory John Casamento 2023-03-08 10:43:41 -05:00
parent be1acf04c4
commit 5bceae9f01
2 changed files with 30 additions and 11 deletions

View file

@ -86,7 +86,7 @@ APPKIT_EXPORT_CLASS
- (void) setAvoidsEmptySelection: (BOOL)flag; - (void) setAvoidsEmptySelection: (BOOL)flag;
- (void) setChildrenKeyPath: (NSString*)path; - (void) setChildrenKeyPath: (NSString*)path;
- (void) setCountKeyPath: (NSString*)path; - (void) setCountKeyPath: (NSString*)path;
- (void) setLeafPathKey: (NSString*)key; - (void) setLeafKeyPath: (NSString*)key;
- (void) setPreservesSelection: (BOOL)flag; - (void) setPreservesSelection: (BOOL)flag;
- (void) setSelectsInsertedObjects: (BOOL)flag; - (void) setSelectsInsertedObjects: (BOOL)flag;
- (void) setSortDescriptors: (NSArray*)descriptors; - (void) setSortDescriptors: (NSArray*)descriptors;

View file

@ -1,5 +1,5 @@
/* /*
NSTreeController.h NSTreeController.m
The tree controller class. The tree controller class.
@ -29,18 +29,37 @@
#import <Foundation/NSArray.h> #import <Foundation/NSArray.h>
#import <Foundation/NSIndexPath.h> #import <Foundation/NSIndexPath.h>
#import <Foundation/NSKeyValueObserving.h>
#import <Foundation/NSString.h> #import <Foundation/NSString.h>
#import <Foundation/NSSortDescriptor.h> #import <Foundation/NSSortDescriptor.h>
#import <AppKit/NSTreeController.h> #import "AppKit/NSKeyValueBinding.h"
#import <AppKit/NSTreeNode.h> #import "AppKit/NSTreeController.h"
#import "AppKit/NSTreeNode.h"
#import "GSBindingHelpers.h"
#import "GSFastEnumeration.h"
@implementation NSTreeController @implementation NSTreeController
+ (void) initialize
{
if (self == [NSTreeController class])
{
[self exposeBinding: NSContentArrayBinding];
[self setKeys: [NSArray arrayWithObjects: NSContentBinding, NSContentObjectBinding, nil]
triggerChangeNotificationsForDependentKey: @"arrangedObjects"];
}
}
- (id) initWithContent: (id)content - (id) initWithContent: (id)content
{ {
if ((self = [super initWithContent: content]) != nil) if ((self = [super initWithContent: content]) != nil)
{ {
_childrenKeyPath = nil;
_countKeyPath = nil;
_leafKeyPath = nil;
_sortDescriptors = nil;
} }
return self; return self;
@ -238,7 +257,7 @@
ASSIGN(_countKeyPath, path); ASSIGN(_countKeyPath, path);
} }
- (void) setLeafPathKey: (NSString*)key - (void) setLeafKeyPath: (NSString*)key
{ {
ASSIGN(_leafKeyPath, key); ASSIGN(_leafKeyPath, key);
} }