Definition at line 66 of file OODeepCopy.m.
◆ 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}
The documentation for this category was generated from the following file: