Mercurial > projects > dstep
comparison dstep/foundation/NSScriptStandardSuiteCommands.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | 89f3c3ef1fd2 |
children | b9de51448c6b |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | 5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) |
6 */ | 6 */ |
7 module dstep.foundation.NSScriptStandardSuiteCommands; | 7 module dstep.foundation.NSScriptStandardSuiteCommands; |
8 | 8 |
9 import dstep.foundation.NSDictionary; | 9 import dstep.foundation.NSDictionary; |
10 import dstep.foundation.NSObjCRuntime; | |
10 import dstep.foundation.NSScriptClassDescription; | 11 import dstep.foundation.NSScriptClassDescription; |
11 import dstep.foundation.NSScriptCommand; | 12 import dstep.foundation.NSScriptCommand; |
12 import dstep.foundation.NSScriptObjectSpecifier; | 13 import dstep.foundation.NSScriptObjectSpecifiers; |
13 import dstep.objc.bridge.Bridge; | 14 import dstep.objc.bridge.Bridge; |
14 import dstep.objc.objc : id; | 15 import dstep.objc.objc; |
15 | 16 |
16 alias NSUInteger NSSaveOptions; | 17 alias NSUInteger NSSaveOptions; |
17 | 18 |
18 enum | 19 enum |
19 { | 20 { |
22 NSSaveOptionsAsk | 23 NSSaveOptionsAsk |
23 } | 24 } |
24 | 25 |
25 class NSCloneCommand : NSScriptCommand | 26 class NSCloneCommand : NSScriptCommand |
26 { | 27 { |
27 mixin ObjcWrap; | 28 mixin (ObjcWrap); |
29 | |
30 this () | |
31 { | |
32 super(typeof(this).alloc.init.objcObject); | |
33 } | |
34 | |
35 typeof(this) init () | |
36 { | |
37 return invokeObjcSelf!(typeof(this), "init"); | |
38 } | |
28 | 39 |
29 void setReceiversSpecifier (NSScriptObjectSpecifier receiversRef) | 40 void setReceiversSpecifier (NSScriptObjectSpecifier receiversRef) |
30 { | 41 { |
31 return invokeObjcSelf!(void, "setReceiversSpecifier:", NSScriptObjectSpecifier)(receiversRef); | 42 return invokeObjcSelf!(void, "setReceiversSpecifier:", NSScriptObjectSpecifier)(receiversRef); |
32 } | 43 } |
37 } | 48 } |
38 } | 49 } |
39 | 50 |
40 class NSSetCommand : NSScriptCommand | 51 class NSSetCommand : NSScriptCommand |
41 { | 52 { |
42 mixin ObjcWrap; | 53 mixin (ObjcWrap); |
43 | 54 |
55 this () | |
56 { | |
57 super(typeof(this).alloc.init.objcObject); | |
58 } | |
59 | |
60 typeof(this) init () | |
61 { | |
62 return invokeObjcSelf!(typeof(this), "init"); | |
63 } | |
64 | |
44 void setReceiversSpecifier (NSScriptObjectSpecifier receiversRef) | 65 void setReceiversSpecifier (NSScriptObjectSpecifier receiversRef) |
45 { | 66 { |
46 return invokeObjcSelf!(void, "setReceiversSpecifier:", NSScriptObjectSpecifier)(receiversRef); | 67 return invokeObjcSelf!(void, "setReceiversSpecifier:", NSScriptObjectSpecifier)(receiversRef); |
47 } | 68 } |
48 | 69 |
52 } | 73 } |
53 } | 74 } |
54 | 75 |
55 class NSCreateCommand : NSScriptCommand | 76 class NSCreateCommand : NSScriptCommand |
56 { | 77 { |
57 mixin ObjcWrap; | 78 mixin (ObjcWrap); |
79 | |
80 this () | |
81 { | |
82 super(typeof(this).alloc.init.objcObject); | |
83 } | |
84 | |
85 typeof(this) init () | |
86 { | |
87 return invokeObjcSelf!(typeof(this), "init"); | |
88 } | |
58 | 89 |
59 NSScriptClassDescription createClassDescription () | 90 NSScriptClassDescription createClassDescription () |
60 { | 91 { |
61 return invokeObjcSelf!(NSScriptClassDescription, "createClassDescription"); | 92 return invokeObjcSelf!(NSScriptClassDescription, "createClassDescription"); |
62 } | 93 } |
67 } | 98 } |
68 } | 99 } |
69 | 100 |
70 class NSMoveCommand : NSScriptCommand | 101 class NSMoveCommand : NSScriptCommand |
71 { | 102 { |
72 mixin ObjcWrap; | 103 mixin (ObjcWrap); |
104 | |
105 this () | |
106 { | |
107 super(typeof(this).alloc.init.objcObject); | |
108 } | |
109 | |
110 typeof(this) init () | |
111 { | |
112 return invokeObjcSelf!(typeof(this), "init"); | |
113 } | |
73 | 114 |
74 void setReceiversSpecifier (NSScriptObjectSpecifier receiversRef) | 115 void setReceiversSpecifier (NSScriptObjectSpecifier receiversRef) |
75 { | 116 { |
76 return invokeObjcSelf!(void, "setReceiversSpecifier:", NSScriptObjectSpecifier)(receiversRef); | 117 return invokeObjcSelf!(void, "setReceiversSpecifier:", NSScriptObjectSpecifier)(receiversRef); |
77 } | 118 } |
82 } | 123 } |
83 } | 124 } |
84 | 125 |
85 class NSQuitCommand : NSScriptCommand | 126 class NSQuitCommand : NSScriptCommand |
86 { | 127 { |
87 mixin ObjcWrap; | 128 mixin (ObjcWrap); |
129 | |
130 this () | |
131 { | |
132 super(typeof(this).alloc.init.objcObject); | |
133 } | |
134 | |
135 typeof(this) init () | |
136 { | |
137 return invokeObjcSelf!(typeof(this), "init"); | |
138 } | |
88 | 139 |
89 uint saveOptions () | 140 uint saveOptions () |
90 { | 141 { |
91 return invokeObjcSelf!(uint, "saveOptions"); | 142 return invokeObjcSelf!(uint, "saveOptions"); |
92 } | 143 } |
93 } | 144 } |
94 | 145 |
95 class NSCloseCommand : NSScriptCommand | 146 class NSCloseCommand : NSScriptCommand |
96 { | 147 { |
97 mixin ObjcWrap; | 148 mixin (ObjcWrap); |
149 | |
150 this () | |
151 { | |
152 super(typeof(this).alloc.init.objcObject); | |
153 } | |
154 | |
155 typeof(this) init () | |
156 { | |
157 return invokeObjcSelf!(typeof(this), "init"); | |
158 } | |
98 | 159 |
99 uint saveOptions () | 160 uint saveOptions () |
100 { | 161 { |
101 return invokeObjcSelf!(uint, "saveOptions"); | 162 return invokeObjcSelf!(uint, "saveOptions"); |
102 } | 163 } |
103 } | 164 } |
104 | 165 |
105 class NSDeleteCommand : NSScriptCommand | 166 class NSDeleteCommand : NSScriptCommand |
106 { | 167 { |
107 mixin ObjcWrap; | 168 mixin (ObjcWrap); |
169 | |
170 this () | |
171 { | |
172 super(typeof(this).alloc.init.objcObject); | |
173 } | |
174 | |
175 typeof(this) init () | |
176 { | |
177 return invokeObjcSelf!(typeof(this), "init"); | |
178 } | |
108 | 179 |
109 void setReceiversSpecifier (NSScriptObjectSpecifier receiversRef) | 180 void setReceiversSpecifier (NSScriptObjectSpecifier receiversRef) |
110 { | 181 { |
111 return invokeObjcSelf!(void, "setReceiversSpecifier:", NSScriptObjectSpecifier)(receiversRef); | 182 return invokeObjcSelf!(void, "setReceiversSpecifier:", NSScriptObjectSpecifier)(receiversRef); |
112 } | 183 } |