comparison dwt/internal/cocoa/NSCoder.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
comparison
equal deleted inserted replaced
0:380af2bdd8e5 1:8b48be5454ce
19 import dwt.internal.cocoa.NSObject; 19 import dwt.internal.cocoa.NSObject;
20 import dwt.internal.cocoa.NSPoint; 20 import dwt.internal.cocoa.NSPoint;
21 import dwt.internal.cocoa.NSRect; 21 import dwt.internal.cocoa.NSRect;
22 import dwt.internal.cocoa.NSSize; 22 import dwt.internal.cocoa.NSSize;
23 import dwt.internal.cocoa.NSString; 23 import dwt.internal.cocoa.NSString;
24 import dwt.internal.cocoa.NSZone;
24 import dwt.internal.cocoa.OS; 25 import dwt.internal.cocoa.OS;
25 import objc = dwt.internal.objc.runtime; 26 import objc = dwt.internal.objc.runtime;
26 27
27 public class NSCoder : NSObject 28 public class NSCoder : NSObject
28 { 29 {
36 super(id); 37 super(id);
37 } 38 }
38 39
39 public bool allowsKeyedCoding () 40 public bool allowsKeyedCoding ()
40 { 41 {
41 return OS.objc_msgSend(this.id, OS.sel_allowsKeyedCoding) !is null; 42 return OS.objc_msgSend(this.id_, OS.sel_allowsKeyedCoding) !is null;
42 } 43 }
43 44
44 public bool containsValueForKey (NSString key) 45 public bool containsValueForKey (NSString key)
45 { 46 {
46 return OS.objc_msgSend(this.id, OS.sel_containsValueForKey_1, key !is null ? key.id : null) !is null; 47 return OS.objc_msgSend(this.id_, OS.sel_containsValueForKey_1, key !is null ? key.id_ : null) !is null;
47 } 48 }
48 49
49 public void decodeArrayOfObjCType (/*const*/char* itemType, NSUInteger count, void* array) 50 public void decodeArrayOfObjCType (/*const*/char* itemType, NSUInteger count, void* array)
50 { 51 {
51 OS.objc_msgSend(this.id, OS.sel_decodeArrayOfObjCType_1count_1at_1, itemType, count, array); 52 OS.objc_msgSend(this.id_, OS.sel_decodeArrayOfObjCType_1count_1at_1, itemType, count, array);
52 } 53 }
53 54
54 public bool decodeBoolForKey (NSString key) 55 public bool decodeBoolForKey (NSString key)
55 { 56 {
56 return OS.objc_msgSend(this.id, OS.sel_decodeBoolForKey_1, key !is null ? key.id : null) !is null; 57 return OS.objc_msgSend(this.id_, OS.sel_decodeBoolForKey_1, key !is null ? key.id_ : null) !is null;
57 } 58 }
58 59
59 public byte* decodeBytesForKey (NSString key, NSUInteger lengthp) 60 public /*const*/ubyte* decodeBytesForKey (NSString key, NSUInteger* lengthp)
60 { 61 {
61 return OS.objc_msgSend(this.id, OS.sel_decodeBytesForKey_1returnedLength_1, key !is null ? key.id : null, lengthp); 62 return cast(/*const*/ubyte*) OS.objc_msgSend(this.id_, OS.sel_decodeBytesForKey_1returnedLength_1, key !is null ? key.id_ : null, lengthp);
62 } 63 }
63 64
64 public void* decodeBytesWithReturnedLength (NSUInteger lengthp) 65 public void* decodeBytesWithReturnedLength (NSUInteger* lengthp)
65 { 66 {
66 return OS.objc_msgSend(this.id, OS.sel_decodeBytesWithReturnedLength_1, lengthp); 67 return cast(void*) OS.objc_msgSend(this.id_, OS.sel_decodeBytesWithReturnedLength_1, lengthp);
67 } 68 }
68 69
69 public NSData decodeDataObject () 70 public NSData decodeDataObject ()
70 { 71 {
71 objc.id result = OS.objc_msgSend(this.id, OS.sel_decodeDataObject); 72 objc.id result = OS.objc_msgSend(this.id_, OS.sel_decodeDataObject);
72 return result !is null ? new NSData(result) : null; 73 return result !is null ? new NSData(result) : null;
73 } 74 }
74 75
75 public double decodeDoubleForKey (NSString key) 76 public double decodeDoubleForKey (NSString key)
76 { 77 {
77 return OS.objc_msgSend_fpret(this.id, OS.sel_decodeDoubleForKey_1, key !is null ? key.id : null); 78 return OS.objc_msgSend_fpret(this.id_, OS.sel_decodeDoubleForKey_1, key !is null ? key.id_ : null);
78 } 79 }
79 80
80 public float decodeFloatForKey (NSString key) 81 public float decodeFloatForKey (NSString key)
81 { 82 {
82 return cast(float) OS.objc_msgSend_fpret(this.id, OS.sel_decodeFloatForKey_1, key !is null ? key.id : null); 83 return cast(float) OS.objc_msgSend_fpret(this.id_, OS.sel_decodeFloatForKey_1, key !is null ? key.id_ : null);
83 } 84 }
84 85
85 public int decodeInt32ForKey (NSString key) 86 public int decodeInt32ForKey (NSString key)
86 { 87 {
87 return OS.objc_msgSend(this.id, OS.sel_decodeInt32ForKey_1, key !is null ? key.id : null); 88 return cast(int) OS.objc_msgSend(this.id_, OS.sel_decodeInt32ForKey_1, key !is null ? key.id_ : null);
88 } 89 }
89 90
90 public long decodeInt64ForKey (NSString key) 91 public long decodeInt64ForKey (NSString key)
91 { 92 {
92 return cast(long) OS.objc_msgSend(this.id, OS.sel_decodeInt64ForKey_1, key !is null ? key.id : null); 93 return cast(long) OS.objc_msgSend(this.id_, OS.sel_decodeInt64ForKey_1, key !is null ? key.id_ : null);
93 } 94 }
94 95
95 public int decodeIntForKey (NSString key) 96 public int decodeIntForKey (NSString key)
96 { 97 {
97 return OS.objc_msgSend(this.id, OS.sel_decodeIntForKey_1, key !is null ? key.id : null); 98 return cast(int) OS.objc_msgSend(this.id_, OS.sel_decodeIntForKey_1, key !is null ? key.id_ : null);
98 } 99 }
99 100
100 public int decodeIntegerForKey (NSString key) 101 public NSInteger decodeIntegerForKey (NSString key)
101 { 102 {
102 return OS.objc_msgSend(this.id, OS.sel_decodeIntegerForKey_1, key !is null ? key.id : null); 103 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_decodeIntegerForKey_1, key !is null ? key.id_ : null);
103 } 104 }
104 105
105 public id decodeNXObject () 106 public id decodeNXObject ()
106 { 107 {
107 objc.id result = OS.objc_msgSend(this.id, OS.sel_decodeNXObject); 108 objc.id result = OS.objc_msgSend(this.id_, OS.sel_decodeNXObject);
108 return result !is null ? new id(result) : null; 109 return result !is null ? new id(result) : null;
109 } 110 }
110 111
111 public id decodeObject () 112 public id decodeObject ()
112 { 113 {
113 objc.id result = OS.objc_msgSend(this.id, OS.sel_decodeObject); 114 objc.id result = OS.objc_msgSend(this.id_, OS.sel_decodeObject);
114 return result !is null ? new id(result) : null; 115 return result !is null ? new id(result) : null;
115 } 116 }
116 117
117 public id decodeObjectForKey (NSString key) 118 public id decodeObjectForKey (NSString key)
118 { 119 {
119 objc.id result = OS.objc_msgSend(this.id, OS.sel_decodeObjectForKey_1, key !is null ? key.id : null); 120 objc.id result = OS.objc_msgSend(this.id_, OS.sel_decodeObjectForKey_1, key !is null ? key.id_ : null);
120 return result !is null ? new id(result) : null; 121 return result !is null ? new id(result) : null;
121 } 122 }
122 123
123 public NSPoint decodePoint () 124 public NSPoint decodePoint ()
124 { 125 {
125 NSPoint result; 126 NSPoint result;
126 OS.objc_msgSend_stret(result, this.id, OS.sel_decodePoint); 127 OS.objc_msgSend_stret(&result, this.id_, OS.sel_decodePoint);
127 return result; 128 return result;
128 } 129 }
129 130
130 public NSPoint decodePointForKey (NSString key) 131 public NSPoint decodePointForKey (NSString key)
131 { 132 {
132 NSPoint result; 133 NSPoint result;
133 OS.objc_msgSend_stret(result, this.id, OS.sel_decodePointForKey_1, key !is null ? key.id : null); 134 OS.objc_msgSend_stret(&result, this.id_, OS.sel_decodePointForKey_1, key !is null ? key.id_ : null);
134 return result; 135 return result;
135 } 136 }
136 137
137 public id decodePropertyList () 138 public id decodePropertyList ()
138 { 139 {
139 objc.id result = OS.objc_msgSend(this.id, OS.sel_decodePropertyList); 140 objc.id result = OS.objc_msgSend(this.id_, OS.sel_decodePropertyList);
140 return result !is null ? new id(result) : null; 141 return result !is null ? new id(result) : null;
141 } 142 }
142 143
143 public NSRect decodeRect () 144 public NSRect decodeRect ()
144 { 145 {
145 NSRect result; 146 NSRect result;
146 OS.objc_msgSend_stret(result, this.id, OS.sel_decodeRect); 147 OS.objc_msgSend_stret(&result, this.id_, OS.sel_decodeRect);
147 return result; 148 return result;
148 } 149 }
149 150
150 public NSRect decodeRectForKey (NSString key) 151 public NSRect decodeRectForKey (NSString key)
151 { 152 {
152 NSRect result; 153 NSRect result;
153 OS.objc_msgSend_stret(result, this.id, OS.sel_decodeRectForKey_1, key !is null ? key.id : null); 154 OS.objc_msgSend_stret(&result, this.id_, OS.sel_decodeRectForKey_1, key !is null ? key.id_ : null);
154 return result; 155 return result;
155 } 156 }
156 157
157 public NSSize decodeSize () 158 public NSSize decodeSize ()
158 { 159 {
159 NSSize result; 160 NSSize result;
160 OS.objc_msgSend_stret(result, this.id, OS.sel_decodeSize); 161 OS.objc_msgSend_stret(&result, this.id_, OS.sel_decodeSize);
161 return result; 162 return result;
162 } 163 }
163 164
164 public NSSize decodeSizeForKey (NSString key) 165 public NSSize decodeSizeForKey (NSString key)
165 { 166 {
166 NSSize result; 167 NSSize result;
167 OS.objc_msgSend_stret(result, this.id, OS.sel_decodeSizeForKey_1, key !is null ? key.id : null); 168 OS.objc_msgSend_stret(&result, this.id_, OS.sel_decodeSizeForKey_1, key !is null ? key.id_ : null);
168 return result; 169 return result;
169 } 170 }
170 171
171 public void decodeValueOfObjCType (/*const*/char* type, void* data) 172 public void decodeValueOfObjCType (/*const*/char* type, void* data)
172 { 173 {
173 OS.objc_msgSend(this.id, OS.sel_decodeValueOfObjCType_1at_1, type, data); 174 OS.objc_msgSend(this.id_, OS.sel_decodeValueOfObjCType_1at_1, type, data);
174 } 175 }
175 176
176 public void decodeValuesOfObjCTypes (/*const*/char* decodeValuesOfObjCTypes) 177 public void decodeValuesOfObjCTypes (/*const*/char* decodeValuesOfObjCTypes)
177 { 178 {
178 OS.objc_msgSend(this.id, OS.sel_decodeValuesOfObjCTypes_1, decodeValuesOfObjCTypes); 179 OS.objc_msgSend(this.id_, OS.sel_decodeValuesOfObjCTypes_1, decodeValuesOfObjCTypes);
179 } 180 }
180 181
181 public void encodeArrayOfObjCType (/*const*/char* type, NSUInteger count, void* array) 182 public void encodeArrayOfObjCType (/*const*/char* type, NSUInteger count, void* array)
182 { 183 {
183 OS.objc_msgSend(this.id, OS.sel_encodeArrayOfObjCType_1count_1at_1, type, count, array); 184 OS.objc_msgSend(this.id_, OS.sel_encodeArrayOfObjCType_1count_1at_1, type, count, array);
184 } 185 }
185 186
186 public void encodeBool (bool boolv, NSString key) 187 public void encodeBool (bool boolv, NSString key)
187 { 188 {
188 OS.objc_msgSend(this.id, OS.sel_encodeBool_1forKey_1, boolv, key !is null ? key.id : null); 189 OS.objc_msgSend(this.id_, OS.sel_encodeBool_1forKey_1, boolv, key !is null ? key.id_ : null);
189 } 190 }
190 191
191 public void encodeBycopyObject (id anObject) 192 public void encodeBycopyObject (id anObject)
192 { 193 {
193 OS.objc_msgSend(this.id, OS.sel_encodeBycopyObject_1, anObject !is null ? anObject.id : null); 194 OS.objc_msgSend(this.id_, OS.sel_encodeBycopyObject_1, anObject !is null ? anObject.id_ : null);
194 } 195 }
195 196
196 public void encodeByrefObject (id anObject) 197 public void encodeByrefObject (id anObject)
197 { 198 {
198 OS.objc_msgSend(this.id, OS.sel_encodeByrefObject_1, anObject !is null ? anObject.id : null); 199 OS.objc_msgSend(this.id_, OS.sel_encodeByrefObject_1, anObject !is null ? anObject.id_ : null);
199 } 200 }
200 201
201 public void encodeBytes_length_ (void* byteaddr, NSUInteger length) 202 public void encodeBytes_length_ (/*const*/void* byteaddr, NSUInteger length)
202 { 203 {
203 OS.objc_msgSend(this.id, OS.sel_encodeBytes_1length_1, byteaddr.ptr, length); 204 OS.objc_msgSend(this.id_, OS.sel_encodeBytes_1length_1, byteaddr, length);
204 } 205 }
205 206
206 public void encodeBytes_length_forKey_ (byte* bytesp, NSUInteger lenv, NSString key) 207 public void encodeBytes_length_forKey_ (byte* bytesp, NSUInteger lenv, NSString key)
207 { 208 {
208 OS.objc_msgSend(this.id, OS.sel_encodeBytes_1length_1forKey_1, bytesp, lenv, key !is null ? key.id : null); 209 OS.objc_msgSend(this.id_, OS.sel_encodeBytes_1length_1forKey_1, bytesp, lenv, key !is null ? key.id_ : null);
209 } 210 }
210 211
211 public void encodeConditionalObject_ (id object) 212 public void encodeConditionalObject_ (id object)
212 { 213 {
213 OS.objc_msgSend(this.id, OS.sel_encodeConditionalObject_1, object !is null ? object.id : null); 214 OS.objc_msgSend(this.id_, OS.sel_encodeConditionalObject_1, object !is null ? object.id_ : null);
214 } 215 }
215 216
216 public void encodeConditionalObject_forKey_ (id objv, NSString key) 217 public void encodeConditionalObject_forKey_ (id objv, NSString key)
217 { 218 {
218 OS.objc_msgSend(this.id, OS.sel_encodeConditionalObject_1forKey_1, objv !is null ? objv.id : null, key !is null ? key.id : null); 219 OS.objc_msgSend(this.id_, OS.sel_encodeConditionalObject_1forKey_1, objv !is null ? objv.id_ : null, key !is null ? key.id_ : null);
219 } 220 }
220 221
221 public void encodeDataObject (NSData data) 222 public void encodeDataObject (NSData data)
222 { 223 {
223 OS.objc_msgSend(this.id, OS.sel_encodeDataObject_1, data !is null ? data.id : null); 224 OS.objc_msgSend(this.id_, OS.sel_encodeDataObject_1, data !is null ? data.id_ : null);
224 } 225 }
225 226
226 public void encodeDouble (double realv, NSString key) 227 public void encodeDouble (double realv, NSString key)
227 { 228 {
228 OS.objc_msgSend(this.id, OS.sel_encodeDouble_1forKey_1, realv, key !is null ? key.id : null); 229 OS.objc_msgSend(this.id_, OS.sel_encodeDouble_1forKey_1, realv, key !is null ? key.id_ : null);
229 } 230 }
230 231
231 public void encodeFloat (float realv, NSString key) 232 public void encodeFloat (float realv, NSString key)
232 { 233 {
233 OS.objc_msgSend(this.id, OS.sel_encodeFloat_1forKey_1, realv, key !is null ? key.id : null); 234 OS.objc_msgSend(this.id_, OS.sel_encodeFloat_1forKey_1, realv, key !is null ? key.id_ : null);
234 } 235 }
235 236
236 public void encodeInt32 (int intv, NSString key) 237 public void encodeInt32 (int intv, NSString key)
237 { 238 {
238 OS.objc_msgSend(this.id, OS.sel_encodeInt32_1forKey_1, intv, key !is null ? key.id : null); 239 OS.objc_msgSend(this.id_, OS.sel_encodeInt32_1forKey_1, intv, key !is null ? key.id_ : null);
239 } 240 }
240 241
241 public void encodeInt64 (long intv, NSString key) 242 public void encodeInt64 (long intv, NSString key)
242 { 243 {
243 OS.objc_msgSend(this.id, OS.sel_encodeInt64_1forKey_1, intv, key !is null ? key.id : null); 244 OS.objc_msgSend(this.id_, OS.sel_encodeInt64_1forKey_1, intv, key !is null ? key.id_ : null);
244 } 245 }
245 246
246 public void encodeInt (int intv, NSString key) 247 public void encodeInt (int intv, NSString key)
247 { 248 {
248 OS.objc_msgSend(this.id, OS.sel_encodeInt_1forKey_1, intv, key !is null ? key.id : null); 249 OS.objc_msgSend(this.id_, OS.sel_encodeInt_1forKey_1, intv, key !is null ? key.id_ : null);
249 } 250 }
250 251
251 public void encodeInteger (int intv, NSString key) 252 public void encodeInteger (NSInteger intv, NSString key)
252 { 253 {
253 OS.objc_msgSend(this.id, OS.sel_encodeInteger_1forKey_1, intv, key !is null ? key.id : null); 254 OS.objc_msgSend(this.id_, OS.sel_encodeInteger_1forKey_1, intv, key !is null ? key.id_ : null);
254 } 255 }
255 256
256 public void encodeNXObject (id object) 257 public void encodeNXObject (id object)
257 { 258 {
258 OS.objc_msgSend(this.id, OS.sel_encodeNXObject_1, object !is null ? object.id : null); 259 OS.objc_msgSend(this.id_, OS.sel_encodeNXObject_1, object !is null ? object.id_ : null);
259 } 260 }
260 261
261 public void encodeObject_ (id object) 262 public void encodeObject_ (id object)
262 { 263 {
263 OS.objc_msgSend(this.id, OS.sel_encodeObject_1, object !is null ? object.id : null); 264 OS.objc_msgSend(this.id_, OS.sel_encodeObject_1, object !is null ? object.id_ : null);
264 } 265 }
265 266
266 public void encodeObject_forKey_ (id objv, NSString key) 267 public void encodeObject_forKey_ (id objv, NSString key)
267 { 268 {
268 OS.objc_msgSend(this.id, OS.sel_encodeObject_1forKey_1, objv !is null ? objv.id : null, key !is null ? key.id : null); 269 OS.objc_msgSend(this.id_, OS.sel_encodeObject_1forKey_1, objv !is null ? objv.id_ : null, key !is null ? key.id_ : null);
269 } 270 }
270 271
271 public void encodePoint_ (NSPoint point) 272 public void encodePoint_ (NSPoint point)
272 { 273 {
273 OS.objc_msgSend(this.id, OS.sel_encodePoint_1, point); 274 OS.objc_msgSend(this.id_, OS.sel_encodePoint_1, point);
274 } 275 }
275 276
276 public void encodePoint_forKey_ (NSPoint point, NSString key) 277 public void encodePoint_forKey_ (NSPoint point, NSString key)
277 { 278 {
278 OS.objc_msgSend(this.id, OS.sel_encodePoint_1forKey_1, point, key !is null ? key.id : null); 279 OS.objc_msgSend(this.id_, OS.sel_encodePoint_1forKey_1, point, key !is null ? key.id_ : null);
279 } 280 }
280 281
281 public void encodePropertyList (id aPropertyList) 282 public void encodePropertyList (id aPropertyList)
282 { 283 {
283 OS.objc_msgSend(this.id, OS.sel_encodePropertyList_1, aPropertyList !is null ? aPropertyList.id : null); 284 OS.objc_msgSend(this.id_, OS.sel_encodePropertyList_1, aPropertyList !is null ? aPropertyList.id_ : null);
284 } 285 }
285 286
286 public void encodeRect_ (NSRect rect) 287 public void encodeRect_ (NSRect rect)
287 { 288 {
288 OS.objc_msgSend(this.id, OS.sel_encodeRect_1, rect); 289 OS.objc_msgSend(this.id_, OS.sel_encodeRect_1, rect);
289 } 290 }
290 291
291 public void encodeRect_forKey_ (NSRect rect, NSString key) 292 public void encodeRect_forKey_ (NSRect rect, NSString key)
292 { 293 {
293 OS.objc_msgSend(this.id, OS.sel_encodeRect_1forKey_1, rect, key !is null ? key.id : null); 294 OS.objc_msgSend(this.id_, OS.sel_encodeRect_1forKey_1, rect, key !is null ? key.id_ : null);
294 } 295 }
295 296
296 public void encodeRootObject (id rootObject) 297 public void encodeRootObject (id rootObject)
297 { 298 {
298 OS.objc_msgSend(this.id, OS.sel_encodeRootObject_1, rootObject !is null ? rootObject.id : null); 299 OS.objc_msgSend(this.id_, OS.sel_encodeRootObject_1, rootObject !is null ? rootObject.id_ : null);
299 } 300 }
300 301
301 public void encodeSize_ (NSSize size) 302 public void encodeSize_ (NSSize size)
302 { 303 {
303 OS.objc_msgSend(this.id, OS.sel_encodeSize_1, size); 304 OS.objc_msgSend(this.id_, OS.sel_encodeSize_1, size);
304 } 305 }
305 306
306 public void encodeSize_forKey_ (NSSize size, NSString key) 307 public void encodeSize_forKey_ (NSSize size, NSString key)
307 { 308 {
308 OS.objc_msgSend(this.id, OS.sel_encodeSize_1forKey_1, size, key !is null ? key.id : null); 309 OS.objc_msgSend(this.id_, OS.sel_encodeSize_1forKey_1, size, key !is null ? key.id_ : null);
309 } 310 }
310 311
311 public void encodeValueOfObjCType (/*const*/char* type, void* addr) 312 public void encodeValueOfObjCType (/*const*/char* type, void* addr)
312 { 313 {
313 OS.objc_msgSend(this.id, OS.sel_encodeValueOfObjCType_1at_1, type, addr); 314 OS.objc_msgSend(this.id_, OS.sel_encodeValueOfObjCType_1at_1, type, addr);
314 } 315 }
315 316
316 public void encodeValuesOfObjCTypes (/*const*/char* encodeValuesOfObjCTypes) 317 public void encodeValuesOfObjCTypes (/*const*/char* encodeValuesOfObjCTypes)
317 { 318 {
318 OS.objc_msgSend(this.id, OS.sel_encodeValuesOfObjCTypes_1, encodeValuesOfObjCTypes); 319 OS.objc_msgSend(this.id_, OS.sel_encodeValuesOfObjCTypes_1, encodeValuesOfObjCTypes);
319 } 320 }
320 321
321 public objc.id objectZone () 322 public NSZone* objectZone ()
322 { 323 {
323 return OS.objc_msgSend(this.id, OS.sel_objectZone); 324 return cast(NSZone*) OS.objc_msgSend(this.id_, OS.sel_objectZone);
324 } 325 }
325 326
326 public void setObjectZone (objc.id zone) 327 public void setObjectZone (objc.id zone)
327 { 328 {
328 OS.objc_msgSend(this.id, OS.sel_setObjectZone_1, zone); 329 OS.objc_msgSend(this.id_, OS.sel_setObjectZone_1, zone);
329 } 330 }
330 331
331 public uint systemVersion () 332 public uint systemVersion ()
332 { 333 {
333 return OS.objc_msgSend(this.id, OS.sel_systemVersion); 334 return cast(uint) OS.objc_msgSend(this.id_, OS.sel_systemVersion);
334 } 335 }
335 336
336 public NSInteger versionForClassName (NSString className) 337 public NSInteger versionForClassName (NSString className)
337 { 338 {
338 return OS.objc_msgSend(this.id, OS.sel_versionForClassName_1, className !is null ? className.id : null); 339 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_versionForClassName_1, className !is null ? className.id_ : null);
339 } 340 }
340 } 341 }