14
|
1 /**
|
|
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
|
|
3 * Authors: Jacob Carlborg
|
|
4 * Version: Initial created: Aug 3, 2009
|
|
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
|
|
6 */
|
|
7 module dstep.foundation.NSAutoreleasePool;
|
|
8
|
|
9 import dstep.foundation.NSObject;
|
|
10 import dstep.objc.bridge.Bridge;
|
|
11 import dstep.objc.objc : id;
|
|
12
|
|
13 class NSAutoreleasePool : NSObject
|
|
14 {
|
|
15 mixin ObjcWrap;
|
|
16 mixin TNSAutoreleasePoolDebugging;
|
|
17
|
|
18 static void addObject (Object anObject)
|
|
19 {
|
|
20 return invokeObjcSelfClass!(void, "addObject:", Object)(anObject);
|
|
21 }
|
|
22
|
|
23 void addObject (Object anObject)
|
|
24 {
|
|
25 return invokeObjcSelf!(void, "addObject:", Object)(anObject);
|
|
26 }
|
|
27
|
|
28 void drain ()
|
|
29 {
|
|
30 return invokeObjcSelf!(void, "drain");
|
|
31 }
|
|
32 }
|
|
33
|