Oolite 1.91.0.7604-240417-a536cbe
Loading...
Searching...
No Matches
Classes | Functions
OODeepCopy.h File Reference
import "OOCocoa.h"
import "OOFunctionAttributes.h"
+ 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