Definition at line 61 of file OODeepCopy.m.
◆ ooDeepCopyWithSharedObjects:
| - (id) ooDeepCopyWithSharedObjects: |
|
(NSMutableSet*) | objects |
|
|
implementation |
Definition at line 63 of file OODeepCopy.m.
63 :(NSMutableSet*)objects
64{
65 NSUInteger length = [self length];
66 if (length == 0)
67 return [[NSString string] retain];
68 if (length > 128)
69 return [self copy];
70
71 id object = [objects member:self];
72 if (
object !=
nil && [
object isKindOfClass:[NSString
class]]) {
73 return [object retain];
74 } else {
75 object = [self copy];
76 [objects addObject:object];
77 return object;
78 }
79}
References nil.
The documentation for this category was generated from the following file: