Mercurial > projects > dstep
annotate dstep/foundation/NSScriptExecutionContext.d @ 15:7ff919f595d5
Added the Foundation framework, again
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 15:31:48 +0200 |
parents | 89f3c3ef1fd2 |
children | 19885b43130e |
rev | line source |
---|---|
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.NSScriptExecutionContext; | |
8 | |
9 import dstep.foundation.NSConnection; | |
10 import dstep.foundation.NSObject; | |
11 import dstep.objc.bridge.Bridge; | |
12 import dstep.objc.objc : id; | |
13 | |
14 class NSScriptExecutionContext : NSObject | |
15 { | |
16 mixin ObjcWrap; | |
17 | |
18 static NSScriptExecutionContext sharedScriptExecutionContext () | |
19 { | |
15
7ff919f595d5
Added the Foundation framework, again
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
20 return invokeObjcSelfClass!(NSScriptExecutionContext, "sharedScriptExecutionContext"); |
7ff919f595d5
Added the Foundation framework, again
Jacob Carlborg <doob@me.com>
parents:
14
diff
changeset
|
21 } |
14 | 22 |
23 Object topLevelObject () | |
24 { | |
25 return invokeObjcSelf!(Object, "topLevelObject"); | |
26 } | |
27 | |
28 void setTopLevelObject (Object obj) | |
29 { | |
30 return invokeObjcSelf!(void, "setTopLevelObject:", Object)(obj); | |
31 } | |
32 | |
33 Object objectBeingTested () | |
34 { | |
35 return invokeObjcSelf!(Object, "objectBeingTested"); | |
36 } | |
37 | |
38 void setObjectBeingTested (Object obj) | |
39 { | |
40 return invokeObjcSelf!(void, "setObjectBeingTested:", Object)(obj); | |
41 } | |
42 | |
43 Object rangeContainerObject () | |
44 { | |
45 return invokeObjcSelf!(Object, "rangeContainerObject"); | |
46 } | |
47 | |
48 void setRangeContainerObject (Object obj) | |
49 { | |
50 return invokeObjcSelf!(void, "setRangeContainerObject:", Object)(obj); | |
51 } | |
52 } | |
53 |