2023-03-08 15:43:41 +00:00
|
|
|
/*
|
|
|
|
NSTreeController.m
|
2013-08-19 19:10:22 +00:00
|
|
|
|
|
|
|
The tree controller class.
|
|
|
|
|
|
|
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Author: Gregory Casamento <greg.casamento@gmail.com>
|
|
|
|
Date: 2012
|
2023-03-08 15:43:41 +00:00
|
|
|
|
2013-08-19 19:10:22 +00:00
|
|
|
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.
|
2023-03-08 15:43:41 +00:00
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
2013-08-19 19:10:22 +00:00
|
|
|
Boston, MA 02110-1301, USA.
|
2023-03-08 15:43:41 +00:00
|
|
|
*/
|
2013-08-19 19:10:22 +00:00
|
|
|
|
|
|
|
#import <Foundation/NSArray.h>
|
|
|
|
#import <Foundation/NSIndexPath.h>
|
2023-03-11 13:59:41 +00:00
|
|
|
#import <Foundation/NSKeyedArchiver.h>
|
2023-03-08 15:43:41 +00:00
|
|
|
#import <Foundation/NSKeyValueObserving.h>
|
2013-08-19 19:10:22 +00:00
|
|
|
#import <Foundation/NSString.h>
|
|
|
|
#import <Foundation/NSSortDescriptor.h>
|
|
|
|
|
2023-03-08 15:43:41 +00:00
|
|
|
#import "AppKit/NSKeyValueBinding.h"
|
|
|
|
#import "AppKit/NSTreeController.h"
|
|
|
|
|
|
|
|
#import "GSBindingHelpers.h"
|
|
|
|
#import "GSFastEnumeration.h"
|
2012-02-29 15:32:09 +00:00
|
|
|
|
|
|
|
@implementation NSTreeController
|
|
|
|
|
2023-03-08 15:43:41 +00:00
|
|
|
+ (void) initialize
|
|
|
|
{
|
|
|
|
if (self == [NSTreeController class])
|
|
|
|
{
|
|
|
|
[self exposeBinding: NSContentArrayBinding];
|
|
|
|
[self setKeys: [NSArray arrayWithObjects: NSContentBinding, NSContentObjectBinding, nil]
|
|
|
|
triggerChangeNotificationsForDependentKey: @"arrangedObjects"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-19 19:10:22 +00:00
|
|
|
- (id) initWithContent: (id)content
|
|
|
|
{
|
2023-03-27 20:36:14 +00:00
|
|
|
NSLog(@"Content = %@", content);
|
2013-08-19 19:10:22 +00:00
|
|
|
if ((self = [super initWithContent: content]) != nil)
|
|
|
|
{
|
2023-03-08 15:43:41 +00:00
|
|
|
_childrenKeyPath = nil;
|
|
|
|
_countKeyPath = nil;
|
|
|
|
_leafKeyPath = nil;
|
2023-03-27 20:36:14 +00:00
|
|
|
_sort_descriptors = nil;
|
2013-08-19 19:10:22 +00:00
|
|
|
}
|
2023-03-08 15:43:41 +00:00
|
|
|
|
2013-08-19 19:10:22 +00:00
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2023-03-27 20:36:14 +00:00
|
|
|
- (id) init
|
|
|
|
{
|
|
|
|
NSMutableArray *array = [[NSMutableArray alloc] init];
|
|
|
|
|
|
|
|
self = [self initWithContent: array];
|
|
|
|
|
|
|
|
RELEASE(array);
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2013-08-19 19:10:22 +00:00
|
|
|
- (void) dealloc
|
|
|
|
{
|
|
|
|
RELEASE(_childrenKeyPath);
|
|
|
|
RELEASE(_countKeyPath);
|
|
|
|
RELEASE(_leafKeyPath);
|
2023-03-27 20:36:14 +00:00
|
|
|
RELEASE(_sort_descriptors);
|
2013-08-19 19:10:22 +00:00
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
2023-03-01 18:19:27 +00:00
|
|
|
- (BOOL) addSelectionIndexPaths: (NSArray *)indexPaths
|
2013-08-19 19:10:22 +00:00
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) alwaysUsesMultipleValuesMarker
|
|
|
|
{
|
|
|
|
return _alwaysUsesMultipleValuesMarker;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) avoidsEmptySelection
|
|
|
|
{
|
|
|
|
return _avoidsEmptySelection;
|
|
|
|
}
|
|
|
|
|
2023-03-01 18:19:27 +00:00
|
|
|
- (BOOL) canAddChild
|
2013-08-19 19:10:22 +00:00
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) canInsert
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) canInsertChild
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) preservesSelection
|
|
|
|
{
|
|
|
|
return _preservesSelection;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) selectsInsertedObjects
|
|
|
|
{
|
|
|
|
return _selectsInsertedObjects;
|
|
|
|
}
|
|
|
|
|
2023-03-01 18:19:27 +00:00
|
|
|
- (BOOL) setSelectionIndexPath: (NSIndexPath *)indexPath
|
2013-08-19 19:10:22 +00:00
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
2023-03-01 18:19:27 +00:00
|
|
|
- (BOOL) setSelectionIndexPaths: (NSArray *)indexPaths
|
2013-08-19 19:10:22 +00:00
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
2023-03-27 20:36:14 +00:00
|
|
|
- (NSArray*) arrangeObjects: (NSArray*)obj
|
|
|
|
{
|
2023-03-29 11:26:32 +00:00
|
|
|
NSArray *temp = obj;
|
2023-03-27 20:36:14 +00:00
|
|
|
return [temp sortedArrayUsingDescriptors: _sort_descriptors];
|
|
|
|
}
|
|
|
|
|
2013-08-19 19:10:22 +00:00
|
|
|
- (id) arrangedObjects
|
|
|
|
{
|
2023-03-27 20:36:14 +00:00
|
|
|
if (_arranged_objects == nil)
|
|
|
|
{
|
|
|
|
[self rearrangeObjects];
|
|
|
|
}
|
|
|
|
return _arranged_objects;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) rearrangeObjects
|
|
|
|
{
|
|
|
|
[self willChangeValueForKey: @"arrangedObjects"];
|
|
|
|
DESTROY(_arranged_objects);
|
|
|
|
_arranged_objects = [[GSObservableArray alloc]
|
|
|
|
initWithArray: [self arrangeObjects: _content]];
|
|
|
|
[self didChangeValueForKey: @"arrangedObjects"];
|
2013-08-19 19:10:22 +00:00
|
|
|
}
|
|
|
|
|
2023-03-01 18:19:27 +00:00
|
|
|
- (NSArray *) selectedObjects
|
2013-08-19 19:10:22 +00:00
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return [super selectedObjects];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSIndexPath*) selectionIndexPath
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray*) selectionIndexPaths
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray*) sortDescriptors
|
|
|
|
{
|
2023-03-27 20:36:14 +00:00
|
|
|
return _sort_descriptors;
|
2013-08-19 19:10:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString*) childrenKeyPath
|
|
|
|
{
|
|
|
|
return _childrenKeyPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString*) countKeyPath
|
|
|
|
{
|
|
|
|
return _countKeyPath;;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString*) leafKeyPath
|
|
|
|
{
|
|
|
|
return _leafKeyPath;
|
|
|
|
}
|
|
|
|
|
2023-03-27 20:36:14 +00:00
|
|
|
- (void) add: (id)sender
|
2013-08-19 19:10:22 +00:00
|
|
|
{
|
2023-03-27 20:36:14 +00:00
|
|
|
if ([self canAddChild])
|
|
|
|
{
|
|
|
|
id new = [self newObject];
|
|
|
|
|
|
|
|
[self addChild: new];
|
|
|
|
RELEASE(new);
|
|
|
|
}
|
2013-08-19 19:10:22 +00:00
|
|
|
}
|
|
|
|
|
2023-03-27 20:36:14 +00:00
|
|
|
- (void) addChild: (id)obj
|
2013-08-19 19:10:22 +00:00
|
|
|
{
|
2023-03-27 20:36:14 +00:00
|
|
|
GSKeyValueBinding *theBinding;
|
|
|
|
|
|
|
|
[self setContent: obj];
|
2023-03-29 11:26:32 +00:00
|
|
|
theBinding = [GSKeyValueBinding getBinding: NSContentObjectBinding
|
|
|
|
forObject: self];
|
2023-03-27 20:36:14 +00:00
|
|
|
if (theBinding != nil)
|
|
|
|
[theBinding reverseSetValueFor: @"content"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) remove: (id)sender
|
|
|
|
{
|
|
|
|
if ([self canRemove])
|
|
|
|
{
|
|
|
|
[self removeObject: [self content]];
|
|
|
|
}
|
2013-08-19 19:10:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void) insertChild: (id)sender
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) insertObject: (id)object atArrangedObjectIndexPath: (NSIndexPath*)indexPath
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) insertObjects: (NSArray*)objects atArrangedObjectIndexPaths: (NSArray*)indexPaths
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) insert: (id)sender
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) removeObjectAtArrangedObjectIndexPath: (NSIndexPath*)indexPath
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) removeObjectsAtArrangedObjectIndexPaths: (NSArray*)indexPaths
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) removeSelectionIndexPaths: (NSArray*)indexPaths
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setAlwaysUsesMultipleValuesMarker: (BOOL)flag
|
|
|
|
{
|
|
|
|
_alwaysUsesMultipleValuesMarker = flag;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setAvoidsEmptySelection: (BOOL)flag
|
|
|
|
{
|
|
|
|
_avoidsEmptySelection = flag;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setChildrenKeyPath: (NSString*)path
|
|
|
|
{
|
|
|
|
ASSIGN(_childrenKeyPath, path);
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setContent: (id)content
|
|
|
|
{
|
|
|
|
// FIXME
|
2023-03-27 20:36:14 +00:00
|
|
|
NSLog(@"in setContent... %@", content);
|
2013-08-19 19:10:22 +00:00
|
|
|
[super setContent: content];
|
2023-03-27 20:36:14 +00:00
|
|
|
[self rearrangeObjects];
|
2013-08-19 19:10:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setCountKeyPath: (NSString*)path
|
|
|
|
{
|
|
|
|
ASSIGN(_countKeyPath, path);
|
|
|
|
}
|
|
|
|
|
2023-03-08 15:43:41 +00:00
|
|
|
- (void) setLeafKeyPath: (NSString*)key
|
2013-08-19 19:10:22 +00:00
|
|
|
{
|
|
|
|
ASSIGN(_leafKeyPath, key);
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setPreservesSelection: (BOOL)flag
|
|
|
|
{
|
|
|
|
_preservesSelection = flag;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setSelectsInsertedObjects: (BOOL)flag
|
|
|
|
{
|
|
|
|
_selectsInsertedObjects = flag;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setSortDescriptors: (NSArray*)descriptors
|
|
|
|
{
|
2023-03-27 20:36:14 +00:00
|
|
|
ASSIGN(_sort_descriptors, descriptors);
|
2013-08-19 19:10:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString*) childrenKeyPathForNode: (NSTreeNode*)node
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString*) countKeyPathForNode: (NSTreeNode*)node
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString*) leafKeyPathForNode: (NSTreeNode*)node
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) moveNode: (NSTreeNode*)node toIndexPath: (NSIndexPath*)indexPath
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) moveNodes: (NSArray*)nodes toIndexPath: (NSIndexPath*)startingIndexPath
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray*) selectedNodes
|
|
|
|
{
|
|
|
|
// FIXME
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
2023-03-11 13:59:41 +00:00
|
|
|
|
|
|
|
- (void) bind: (NSString *)binding
|
|
|
|
toObject: (id)anObject
|
|
|
|
withKeyPath: (NSString *)keyPath
|
|
|
|
options: (NSDictionary *)options
|
|
|
|
{
|
|
|
|
if ([binding isEqual: NSContentArrayBinding])
|
|
|
|
{
|
|
|
|
GSKeyValueBinding *kvb;
|
|
|
|
|
|
|
|
[self unbind: binding];
|
|
|
|
kvb = [[GSKeyValueBinding alloc] initWithBinding: @"content"
|
|
|
|
withName: binding
|
|
|
|
toObject: anObject
|
|
|
|
withKeyPath: keyPath
|
|
|
|
options: options
|
|
|
|
fromObject: self];
|
|
|
|
// The binding will be retained in the binding table
|
|
|
|
RELEASE(kvb);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
[super bind: binding
|
|
|
|
toObject: anObject
|
|
|
|
withKeyPath: keyPath
|
|
|
|
options: options];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-19 19:10:22 +00:00
|
|
|
- (id) initWithCoder: (NSCoder*)coder
|
2012-02-29 15:32:09 +00:00
|
|
|
{
|
2023-03-11 13:59:41 +00:00
|
|
|
self = [super initWithCoder: coder];
|
|
|
|
|
|
|
|
if (self != nil)
|
|
|
|
{
|
2023-03-28 23:47:42 +00:00
|
|
|
if ([coder allowsKeyedCoding])
|
2023-03-11 13:59:41 +00:00
|
|
|
{
|
2023-03-28 23:47:42 +00:00
|
|
|
// These names do not stick to convention. Usually it would be
|
|
|
|
// NS* or NSTreeController* so they must be overriden in
|
|
|
|
// GSXib5KeyedUnarchver.
|
|
|
|
if ([coder containsValueForKey: @"NSTreeContentChildrenKey"])
|
|
|
|
{
|
|
|
|
[self setChildrenKeyPath:
|
|
|
|
[coder decodeObjectForKey: @"NSTreeContentChildrenKey"]];
|
|
|
|
}
|
|
|
|
if ([coder containsValueForKey: @"NSTreeContentCountKey"])
|
|
|
|
{
|
|
|
|
[self setChildrenKeyPath:
|
|
|
|
[coder decodeObjectForKey: @"NSTreeContentCountKey"]];
|
|
|
|
}
|
|
|
|
if ([coder containsValueForKey: @"NSTreeContentLeafKey"])
|
|
|
|
{
|
|
|
|
[self setChildrenKeyPath:
|
|
|
|
[coder decodeObjectForKey: @"NSTreeContentLeafKey"]];
|
|
|
|
}
|
2023-03-29 11:26:32 +00:00
|
|
|
|
2023-03-28 23:47:42 +00:00
|
|
|
// Since we don't inherit from NSArrayController these are decoded here
|
|
|
|
// as well.
|
|
|
|
if ([coder containsValueForKey: @"NSAvoidsEmptySelection"])
|
|
|
|
{
|
|
|
|
[self setAvoidsEmptySelection:
|
|
|
|
[coder decodeBoolForKey: @"NSAvoidsEmptySelection"]];
|
|
|
|
}
|
|
|
|
if ([coder containsValueForKey: @"NSPreservesSelection"])
|
|
|
|
{
|
|
|
|
[self setPreservesSelection:
|
|
|
|
[coder decodeBoolForKey: @"NSPreservesSelection"]];
|
|
|
|
}
|
|
|
|
if ([coder containsValueForKey: @"NSSelectsInsertedObjects"])
|
|
|
|
{
|
|
|
|
[self setSelectsInsertedObjects:
|
|
|
|
[coder decodeBoolForKey: @"NSSelectsInsertedObjects"]];
|
|
|
|
}
|
2023-03-11 13:59:41 +00:00
|
|
|
}
|
|
|
|
}
|
2023-03-28 23:47:42 +00:00
|
|
|
else
|
|
|
|
{
|
2023-03-29 11:26:32 +00:00
|
|
|
id obj = nil;
|
|
|
|
BOOL f = NO;
|
|
|
|
|
|
|
|
obj = [coder decodeObject];
|
|
|
|
[self setChildrenKeyPath: obj];
|
|
|
|
obj = [coder decodeObject];
|
|
|
|
[self setCountKeyPath: obj];
|
|
|
|
obj = [coder decodeObject];
|
|
|
|
[self setLeafKeyPath: obj];
|
|
|
|
|
|
|
|
[coder decodeValueOfObjCType: @encode(BOOL)
|
|
|
|
at: &f];
|
|
|
|
[self setAvoidsEmptySelection: f];
|
|
|
|
[coder decodeValueOfObjCType: @encode(BOOL)
|
|
|
|
at: &f];
|
|
|
|
[self setPreservesSelection: f];
|
|
|
|
[coder decodeValueOfObjCType: @encode(BOOL)
|
|
|
|
at: &f];
|
|
|
|
[self setSelectsInsertedObjects: f];
|
2023-03-28 23:47:42 +00:00
|
|
|
}
|
2023-03-11 13:59:41 +00:00
|
|
|
|
2012-02-29 15:32:09 +00:00
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2013-08-19 19:10:22 +00:00
|
|
|
- (void) encodeWithCoder: (NSCoder*)coder
|
2012-02-29 15:32:09 +00:00
|
|
|
{
|
2023-03-11 13:59:41 +00:00
|
|
|
[super encodeWithCoder: coder];
|
2023-03-29 11:26:32 +00:00
|
|
|
|
2023-03-28 23:47:42 +00:00
|
|
|
if ([coder allowsKeyedCoding])
|
|
|
|
{
|
|
|
|
[coder encodeObject: _childrenKeyPath
|
|
|
|
forKey: @"NSTreeContentChildrenKey"];
|
|
|
|
[coder encodeObject: _countKeyPath
|
|
|
|
forKey: @"NSTreeContentCountKey"];
|
|
|
|
[coder encodeObject: _leafKeyPath
|
|
|
|
forKey: @"NSTreeContentLeafKey"];
|
|
|
|
|
|
|
|
|
|
|
|
[coder encodeBool: _avoidsEmptySelection
|
|
|
|
forKey: @"NSAvoidsEmptySelection"];
|
|
|
|
[coder encodeBool: _preservesSelection
|
|
|
|
forKey: @"NSPreservesSelection"];
|
|
|
|
[coder encodeBool: _selectsInsertedObjects
|
|
|
|
forKey: @"NSSelectsInsertedObjects"];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-03-29 11:26:32 +00:00
|
|
|
id obj = nil;
|
|
|
|
BOOL f = NO;
|
|
|
|
|
|
|
|
obj = [self childrenKeyPath];
|
|
|
|
[coder encodeObject: obj];
|
|
|
|
obj = [self countKeyPath];
|
|
|
|
[coder encodeObject: obj];
|
|
|
|
obj = [self leafKeyPath];
|
|
|
|
[coder encodeObject: obj];
|
|
|
|
|
|
|
|
f = [self avoidsEmptySelection];
|
|
|
|
[coder encodeValueOfObjCType: @encode(BOOL)
|
|
|
|
at: &f];
|
|
|
|
f = [self preservesSelection];
|
|
|
|
[coder encodeValueOfObjCType: @encode(BOOL)
|
|
|
|
at: &f];
|
|
|
|
f = [self selectsInsertedObjects];
|
|
|
|
[coder encodeValueOfObjCType: @encode(BOOL)
|
|
|
|
at: &f];
|
2023-03-28 23:47:42 +00:00
|
|
|
}
|
2012-02-29 15:32:09 +00:00
|
|
|
}
|
|
|
|
|
2013-08-19 19:10:22 +00:00
|
|
|
- (id) copyWithZone: (NSZone*)zone
|
2012-02-29 15:32:09 +00:00
|
|
|
{
|
|
|
|
return [self retain];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|