Mercurial > projects > dstep
comparison dstep/foundation/NSAutoreleasePool.d @ 14:89f3c3ef1fd2
Added the Foundation framework
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 15:23:15 +0200 |
parents | |
children | 19885b43130e |
comparison
equal
deleted
inserted
replaced
13:4f583f7e242e | 14:89f3c3ef1fd2 |
---|---|
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 |