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 {
|
|
20 return invokeObjcSelfClass!(NSScriptExecutionContext, "sharedScriptExecutionContext"return result is this.objcObject ? this : (result !is null ? new NSScriptExecutionContext(result) : null); }
|
|
21
|
|
22 Object topLevelObject ()
|
|
23 {
|
|
24 return invokeObjcSelf!(Object, "topLevelObject");
|
|
25 }
|
|
26
|
|
27 void setTopLevelObject (Object obj)
|
|
28 {
|
|
29 return invokeObjcSelf!(void, "setTopLevelObject:", Object)(obj);
|
|
30 }
|
|
31
|
|
32 Object objectBeingTested ()
|
|
33 {
|
|
34 return invokeObjcSelf!(Object, "objectBeingTested");
|
|
35 }
|
|
36
|
|
37 void setObjectBeingTested (Object obj)
|
|
38 {
|
|
39 return invokeObjcSelf!(void, "setObjectBeingTested:", Object)(obj);
|
|
40 }
|
|
41
|
|
42 Object rangeContainerObject ()
|
|
43 {
|
|
44 return invokeObjcSelf!(Object, "rangeContainerObject");
|
|
45 }
|
|
46
|
|
47 void setRangeContainerObject (Object obj)
|
|
48 {
|
|
49 return invokeObjcSelf!(void, "setRangeContainerObject:", Object)(obj);
|
|
50 }
|
|
51 }
|
|
52
|