Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
NSString(OODeepCopy) Category Reference

Instance Methods

(id) - ooDeepCopyWithSharedObjects: [implementation]
 

Detailed Description

Definition at line 66 of file OODeepCopy.m.

Method Documentation

◆ ooDeepCopyWithSharedObjects:

- (id) ooDeepCopyWithSharedObjects: (NSMutableSet *) objects
implementation

Definition at line 31 of file OODeepCopy.m.

68 :(NSMutableSet *)objects
69{
70 NSUInteger length = [self length];
71 if (length == 0) return [[NSString string] retain];
72 if (length > 128) return [self copy];
73
74 id object = [objects member:self];
75 if (object != nil && [object isKindOfClass:[NSString class]])
76 {
77 return [object retain];
78 }
79 else
80 {
81 object = [self copy];
82 [objects addObject:object];
83 return object;
84 }
85}
return nil

The documentation for this category was generated from the following file: