Update header to correct addChild: remove uneeded declarations, make corresponding changes in .m file

This commit is contained in:
Gregory John Casamento 2023-03-01 13:19:27 -05:00
parent 14baf92024
commit be1acf04c4
2 changed files with 7 additions and 43 deletions

View file

@ -56,7 +56,7 @@ APPKIT_EXPORT_CLASS
- (BOOL) addSelectionIndexPaths: (NSArray*)indexPaths; - (BOOL) addSelectionIndexPaths: (NSArray*)indexPaths;
- (BOOL) alwaysUsesMultipleValuesMarker; - (BOOL) alwaysUsesMultipleValuesMarker;
- (BOOL) avoidsEmptySelection; - (BOOL) avoidsEmptySelection;
- (BOOL) canAddChid; - (BOOL) canAddChild;
- (BOOL) canInsert; - (BOOL) canInsert;
- (BOOL) canInsertChild; - (BOOL) canInsertChild;
- (BOOL) preservesSelection; - (BOOL) preservesSelection;
@ -64,7 +64,6 @@ APPKIT_EXPORT_CLASS
- (BOOL) setSelectionIndexPath: (NSIndexPath*)indexPath; - (BOOL) setSelectionIndexPath: (NSIndexPath*)indexPath;
- (BOOL) setSelectionIndexPaths: (NSArray*)indexPaths; - (BOOL) setSelectionIndexPaths: (NSArray*)indexPaths;
- (id) arrangedObjects; - (id) arrangedObjects;
- (id) content;
- (NSArray*) selectedObjects; - (NSArray*) selectedObjects;
- (NSIndexPath*) selectionIndexPath; - (NSIndexPath*) selectionIndexPath;
- (NSArray*) selectionIndexPaths; - (NSArray*) selectionIndexPaths;
@ -86,7 +85,6 @@ APPKIT_EXPORT_CLASS
- (void) setAlwaysUsesMultipleValuesMarker: (BOOL)flag; - (void) setAlwaysUsesMultipleValuesMarker: (BOOL)flag;
- (void) setAvoidsEmptySelection: (BOOL)flag; - (void) setAvoidsEmptySelection: (BOOL)flag;
- (void) setChildrenKeyPath: (NSString*)path; - (void) setChildrenKeyPath: (NSString*)path;
- (void) setContent: (id)content;
- (void) setCountKeyPath: (NSString*)path; - (void) setCountKeyPath: (NSString*)path;
- (void) setLeafPathKey: (NSString*)key; - (void) setLeafPathKey: (NSString*)key;
- (void) setPreservesSelection: (BOOL)flag; - (void) setPreservesSelection: (BOOL)flag;

View file

@ -1,32 +1,4 @@
/* /*
NSTreeController.h
The tree controller class.
Copyright (C) 2012 Free Software Foundation, Inc.
Author: Gregory Casamento <greg.casamento@gmail.com>
Date: 2012
This file is part of the GNUstep GUI Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; see the file COPYING.LIB.
If not, see <http://www.gnu.org/licenses/> or write to the
Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
/*
NSTreeController.h NSTreeController.h
The tree controller class. The tree controller class.
@ -83,7 +55,7 @@
[super dealloc]; [super dealloc];
} }
- (BOOL) addSelectionIndexPaths: (NSArray*)indexPaths - (BOOL) addSelectionIndexPaths: (NSArray *)indexPaths
{ {
// FIXME // FIXME
return NO; return NO;
@ -99,7 +71,7 @@
return _avoidsEmptySelection; return _avoidsEmptySelection;
} }
- (BOOL) canAddChid - (BOOL) canAddChild
{ {
// FIXME // FIXME
return NO; return NO;
@ -127,13 +99,13 @@
return _selectsInsertedObjects; return _selectsInsertedObjects;
} }
- (BOOL) setSelectionIndexPath: (NSIndexPath*)indexPath - (BOOL) setSelectionIndexPath: (NSIndexPath *)indexPath
{ {
// FIXME // FIXME
return NO; return NO;
} }
- (BOOL) setSelectionIndexPaths: (NSArray*)indexPaths - (BOOL) setSelectionIndexPaths: (NSArray *)indexPaths
{ {
// FIXME // FIXME
return NO; return NO;
@ -145,13 +117,7 @@
return nil; return nil;
} }
- (id) content - (NSArray *) selectedObjects
{
// FIXME
return [super content];
}
- (NSArray*) selectedObjects
{ {
// FIXME // FIXME
return [super selectedObjects]; return [super selectedObjects];