Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OODeepCopy.m File Reference
import "OODeepCopy.h"
+ Include dependency graph for OODeepCopy.m:

Go to the source code of this file.

Functions

id OODeepCopy (id object)
 

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