Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OODeepCopy.h File Reference
+ Include dependency graph for OODeepCopy.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

category  NSObject(OODeepCopy)
 

Functions

id OODeepCopy (id object) OO_RETURNS_RETAINED
 

Function Documentation

◆ OODeepCopy()

id OODeepCopy ( id object)

Definition at line 31 of file OODeepCopy.m.

32{
33 NSAutoreleasePool *pool = nil;
34 NSMutableSet *objects = nil;
35
36 if (object == nil) return nil;
37
38 pool = [[NSAutoreleasePool alloc] init];
39 objects = [NSMutableSet set];
40
41 object = [object ooDeepCopyWithSharedObjects:objects];
42
43 [pool release];
44
45 return object;
46}
return nil