Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSObject.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | 8b48be5454ce |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:380af2bdd8e5 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2007 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * | |
11 * Port to the D Programming language: | |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | |
13 *******************************************************************************/ | |
14 module dwt.internal.cocoa.NSObject; | |
15 | |
16 import dwt.dwthelper.utils; | |
17 import dwt.internal.c.carboncore.MacTypes : FourCharCode; | |
18 import dwt.internal.cocoa.id; | |
19 import dwt.internal.cocoa.NSArchiver; | |
20 import dwt.internal.cocoa.NSArray; | |
21 import dwt.internal.cocoa.NSCachedURLResponse; | |
22 import dwt.internal.cocoa.NSClassDescription; | |
23 import dwt.internal.cocoa.NSCoder; | |
24 import dwt.internal.cocoa.NSConnection; | |
25 import dwt.internal.cocoa.NSData; | |
26 import dwt.internal.cocoa.NSDate : NSTimeInterval; | |
27 import dwt.internal.cocoa.NSDecimal; | |
28 import dwt.internal.cocoa.NSDecimalNumber; | |
29 import dwt.internal.cocoa.NSDictionary; | |
30 import dwt.internal.cocoa.NSDistantObjectRequest; | |
31 import dwt.internal.cocoa.NSEnumerator : NSFastEnumerationState; | |
32 import dwt.internal.cocoa.NSError; | |
33 import dwt.internal.cocoa.NSFileManager; | |
34 import dwt.internal.cocoa.NSIndexSet; | |
35 import dwt.internal.cocoa.NSInteger; | |
36 import dwt.internal.cocoa.NSInvocation; | |
37 import dwt.internal.cocoa.NSKeyedArchiver; | |
38 import dwt.internal.cocoa.NSKeyedUnarchiver; | |
39 import dwt.internal.cocoa.NSKeyValueObserving; | |
40 import dwt.internal.cocoa.NSMetadataItem; | |
41 import dwt.internal.cocoa.NSMetadataQuery; | |
42 import dwt.internal.cocoa.NSMethodSignature; | |
43 import dwt.internal.cocoa.NSMutableArray; | |
44 import dwt.internal.cocoa.NSMutableSet; | |
45 import dwt.internal.cocoa.NSNetService; | |
46 import dwt.internal.cocoa.NSNetServiceBrowser; | |
47 import dwt.internal.cocoa.NSPortCoder; | |
48 import dwt.internal.cocoa.NSPortMessage; | |
49 import dwt.internal.cocoa.NSRange; | |
50 import dwt.internal.cocoa.NSScriptObjectSpecifier; | |
51 import dwt.internal.cocoa.NSSet; | |
52 import dwt.internal.cocoa.NSSpellServer; | |
53 import dwt.internal.cocoa.NSStream; | |
54 import dwt.internal.cocoa.NSString; | |
55 import dwt.internal.cocoa.NSThread; | |
56 import dwt.internal.cocoa.NSURL; | |
57 import dwt.internal.cocoa.NSURLAuthenticationChallenge; | |
58 import dwt.internal.cocoa.NSURLCache : NSURLCacheStoragePolicy; | |
59 import dwt.internal.cocoa.NSURLConnection; | |
60 import dwt.internal.cocoa.NSURLCredential; | |
61 import dwt.internal.cocoa.NSURLDownload; | |
62 import dwt.internal.cocoa.NSURLHandle; | |
63 import dwt.internal.cocoa.NSURLProtocol; | |
64 import dwt.internal.cocoa.NSURLRequest; | |
65 import dwt.internal.cocoa.NSURLResponse; | |
66 import dwt.internal.cocoa.NSXMLParser; | |
67 import dwt.internal.cocoa.NSZone; | |
68 import dwt.internal.cocoa.OS; | |
69 import objc = dwt.internal.objc.runtime; | |
70 | |
71 public class NSObject : id | |
72 { | |
73 | |
74 public this () | |
75 { | |
76 super(); | |
77 } | |
78 | |
79 public this (objc.id id) | |
80 { | |
81 super(id); | |
82 } | |
83 | |
84 public void URL_resourceDataDidBecomeAvailable_ (NSURL sender, NSData newBytes) | |
85 { | |
86 OS.objc_msgSend(this.id, OS.sel_URL_1resourceDataDidBecomeAvailable_1, sender !is null ? sender.id : null, | |
87 newBytes !is null ? newBytes.id : null); | |
88 } | |
89 | |
90 public void URL_resourceDidFailLoadingWithReason_ (NSURL sender, NSString reason) | |
91 { | |
92 OS.objc_msgSend(this.id, OS.sel_URL_1resourceDidFailLoadingWithReason_1, sender !is null ? sender.id : null, | |
93 reason !is null ? reason.id : null); | |
94 } | |
95 | |
96 public void URLHandle_resourceDataDidBecomeAvailable_ (NSURLHandle sender, NSData newBytes) | |
97 { | |
98 OS.objc_msgSend(this.id, OS.sel_URLHandle_1resourceDataDidBecomeAvailable_1, sender !is null ? sender.id : null, | |
99 newBytes !is null ? newBytes.id : null); | |
100 } | |
101 | |
102 public void URLHandle_resourceDidFailLoadingWithReason_ (NSURLHandle sender, NSString reason) | |
103 { | |
104 OS.objc_msgSend(this.id, OS.sel_URLHandle_1resourceDidFailLoadingWithReason_1, sender !is null ? sender.id : null, | |
105 reason !is null ? reason.id : null); | |
106 } | |
107 | |
108 public void URLHandleResourceDidBeginLoading (NSURLHandle sender) | |
109 { | |
110 OS.objc_msgSend(this.id, OS.sel_URLHandleResourceDidBeginLoading_1, sender !is null ? sender.id : null); | |
111 } | |
112 | |
113 public void URLHandleResourceDidCancelLoading (NSURLHandle sender) | |
114 { | |
115 OS.objc_msgSend(this.id, OS.sel_URLHandleResourceDidCancelLoading_1, sender !is null ? sender.id : null); | |
116 } | |
117 | |
118 public void URLHandleResourceDidFinishLoading (NSURLHandle sender) | |
119 { | |
120 OS.objc_msgSend(this.id, OS.sel_URLHandleResourceDidFinishLoading_1, sender !is null ? sender.id : null); | |
121 } | |
122 | |
123 public void URLProtocol_cachedResponseIsValid_ (NSURLProtocol protocol, NSCachedURLResponse cachedResponse) | |
124 { | |
125 OS.objc_msgSend(this.id, OS.sel_URLProtocol_1cachedResponseIsValid_1, protocol !is null ? protocol.id : null, | |
126 cachedResponse !is null ? cachedResponse.id : null); | |
127 } | |
128 | |
129 public void URLProtocol_didCancelAuthenticationChallenge_ (NSURLProtocol protocol, NSURLAuthenticationChallenge challenge) | |
130 { | |
131 OS.objc_msgSend(this.id, OS.sel_URLProtocol_1didCancelAuthenticationChallenge_1, protocol !is null ? protocol.id : null, | |
132 challenge !is null ? challenge.id : null); | |
133 } | |
134 | |
135 public void URLProtocol_didFailWithError_ (NSURLProtocol protocol, NSError error) | |
136 { | |
137 OS.objc_msgSend(this.id, OS.sel_URLProtocol_1didFailWithError_1, protocol !is null ? protocol.id : null, error !is null ? error.id : null); | |
138 } | |
139 | |
140 public void URLProtocol_didLoadData_ (NSURLProtocol protocol, NSData data) | |
141 { | |
142 OS.objc_msgSend(this.id, OS.sel_URLProtocol_1didLoadData_1, protocol !is null ? protocol.id : null, data !is null ? data.id : null); | |
143 } | |
144 | |
145 public void URLProtocol_didReceiveAuthenticationChallenge_ (NSURLProtocol protocol, NSURLAuthenticationChallenge challenge) | |
146 { | |
147 OS.objc_msgSend(this.id, OS.sel_URLProtocol_1didReceiveAuthenticationChallenge_1, protocol !is null ? protocol.id : null, | |
148 challenge !is null ? challenge.id : null); | |
149 } | |
150 | |
151 public void URLProtocol_didReceiveResponse_cacheStoragePolicy_ (NSURLProtocol protocol, NSURLResponse response, NSURLCacheStoragePolicy policy) | |
152 { | |
153 OS.objc_msgSend(this.id, OS.sel_URLProtocol_1didReceiveResponse_1cacheStoragePolicy_1, protocol !is null ? protocol.id : null, | |
154 response !is null ? response.id : null, policy); | |
155 } | |
156 | |
157 public void URLProtocol_wasRedirectedToRequest_redirectResponse_ (NSURLProtocol protocol, NSURLRequest request, NSURLResponse redirectResponse) | |
158 { | |
159 OS.objc_msgSend(this.id, OS.sel_URLProtocol_1wasRedirectedToRequest_1redirectResponse_1, protocol !is null ? protocol.id : null, | |
160 request !is null ? request.id : null, redirectResponse !is null ? redirectResponse.id : null); | |
161 } | |
162 | |
163 public void URLProtocolDidFinishLoading (NSURLProtocol protocol) | |
164 { | |
165 OS.objc_msgSend(this.id, OS.sel_URLProtocolDidFinishLoading_1, protocol !is null ? protocol.id : null); | |
166 } | |
167 | |
168 public void URLResourceDidCancelLoading (NSURL sender) | |
169 { | |
170 OS.objc_msgSend(this.id, OS.sel_URLResourceDidCancelLoading_1, sender !is null ? sender.id : null); | |
171 } | |
172 | |
173 public void URLResourceDidFinishLoading (NSURL sender) | |
174 { | |
175 OS.objc_msgSend(this.id, OS.sel_URLResourceDidFinishLoading_1, sender !is null ? sender.id : null); | |
176 } | |
177 | |
178 public static bool accessInstanceVariablesDirectly () | |
179 { | |
180 return OS.objc_msgSend(OS.class_NSObject, OS.sel_accessInstanceVariablesDirectly) !is null; | |
181 } | |
182 | |
183 public void addObserver (NSObject observer, NSString keyPath, NSKeyValueObservingOptions options, void* context) | |
184 { | |
185 OS.objc_msgSend(this.id, OS.sel_addObserver_1forKeyPath_1options_1context_1, observer !is null ? observer.id : null, | |
186 keyPath !is null ? keyPath.id : null, options, context); | |
187 } | |
188 | |
189 public NSObject alloc () | |
190 { | |
191 objc.id result = OS.objc_msgSend(cast(objc.id)get_class(), OS.sel_alloc); | |
192 this.id = result; | |
193 return result !is null ? this : null; | |
194 } | |
195 | |
196 public objc.Class get_class () | |
197 { | |
198 String name = this.classinfo.name; | |
199 int index = name.lastIndexOf('.'); | |
200 if (index != -1) | |
201 name = name.substring(index + 1); | |
202 return cast(objc.Class)OS.objc_getClass(name); | |
203 } | |
204 | |
205 public static id allocWithZone (NSZone* zone) | |
206 { | |
207 objc.id result = OS.objc_msgSend(OS.class_NSObject, OS.sel_allocWithZone_1, zone); | |
208 return result !is null ? new id(result) : null; | |
209 } | |
210 | |
211 public void archiver_didEncodeObject_ (NSKeyedArchiver archiver, id object) | |
212 { | |
213 OS.objc_msgSend(this.id, OS.sel_archiver_1didEncodeObject_1, archiver !is null ? archiver.id : null, object !is null ? object.id : null); | |
214 } | |
215 | |
216 public id archiver_willEncodeObject_ (NSKeyedArchiver archiver, id object) | |
217 { | |
218 objc.id result = OS.objc_msgSend(this.id, OS.sel_archiver_1willEncodeObject_1, archiver !is null ? archiver.id : null, | |
219 object !is null ? object.id : null); | |
220 return result !is null ? new id(result) : null; | |
221 } | |
222 | |
223 public void archiver_willReplaceObject_withObject_ (NSKeyedArchiver archiver, id object, id newObject) | |
224 { | |
225 OS.objc_msgSend(this.id, OS.sel_archiver_1willReplaceObject_1withObject_1, archiver !is null ? archiver.id : null, | |
226 object !is null ? object.id : null, newObject !is null ? newObject.id : null); | |
227 } | |
228 | |
229 public void archiverDidFinish (NSKeyedArchiver archiver) | |
230 { | |
231 OS.objc_msgSend(this.id, OS.sel_archiverDidFinish_1, archiver !is null ? archiver.id : null); | |
232 } | |
233 | |
234 public void archiverWillFinish (NSKeyedArchiver archiver) | |
235 { | |
236 OS.objc_msgSend(this.id, OS.sel_archiverWillFinish_1, archiver !is null ? archiver.id : null); | |
237 } | |
238 | |
239 public bool attemptRecoveryFromError_optionIndex_ (NSError error, NSUInteger recoveryOptionIndex) | |
240 { | |
241 return OS.objc_msgSend(this.id, OS.sel_attemptRecoveryFromError_1optionIndex_1, error !is null ? error.id : null, recoveryOptionIndex) !is null; | |
242 } | |
243 | |
244 public void attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_ (NSError error, NSUInteger recoveryOptionIndex, id delegatee, | |
245 objc.SEL didRecoverSelector, void* contextInfo) | |
246 { | |
247 OS.objc_msgSend(this.id, OS.sel_attemptRecoveryFromError_1optionIndex_1delegate_1didRecoverSelector_1contextInfo_1, | |
248 error !is null ? error.id : null, recoveryOptionIndex, delegatee !is null ? delegatee.id : null, didRecoverSelector, contextInfo); | |
249 } | |
250 | |
251 public NSArray attributeKeys () | |
252 { | |
253 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributeKeys); | |
254 return result !is null ? new NSArray(result) : null; | |
255 } | |
256 | |
257 public bool authenticateComponents (NSArray components, NSData signature) | |
258 { | |
259 return OS.objc_msgSend(this.id, OS.sel_authenticateComponents_1withData_1, components !is null ? components.id : null, | |
260 signature !is null ? signature.id : null) !is null; | |
261 } | |
262 | |
263 public NSData authenticationDataForComponents (NSArray components) | |
264 { | |
265 objc.id result = OS.objc_msgSend(this.id, OS.sel_authenticationDataForComponents_1, components !is null ? components.id : null); | |
266 return result !is null ? new NSData(result) : null; | |
267 } | |
268 | |
269 public static bool automaticallyNotifiesObserversForKey (NSString key) | |
270 { | |
271 return OS.objc_msgSend(OS.class_NSObject, OS.sel_automaticallyNotifiesObserversForKey_1, key !is null ? key.id : null) !is null; | |
272 } | |
273 | |
274 public id autorelease () | |
275 { | |
276 objc.id result = OS.objc_msgSend(this.id, OS.sel_autorelease); | |
277 return result !is null ? new id(result) : null; | |
278 } | |
279 | |
280 public id awakeAfterUsingCoder (NSCoder aDecoder) | |
281 { | |
282 objc.id result = OS.objc_msgSend(this.id, OS.sel_awakeAfterUsingCoder_1, aDecoder !is null ? aDecoder.id : null); | |
283 return result !is null ? new id(result) : null; | |
284 } | |
285 | |
286 public void cancelAuthenticationChallenge (NSURLAuthenticationChallenge challenge) | |
287 { | |
288 OS.objc_msgSend(this.id, OS.sel_cancelAuthenticationChallenge_1, challenge !is null ? challenge.id : null); | |
289 } | |
290 | |
291 public static void static_cancelPreviousPerformRequestsWithTarget_ (id aTarget) | |
292 { | |
293 OS.objc_msgSend(OS.class_NSObject, OS.sel_cancelPreviousPerformRequestsWithTarget_1, aTarget !is null ? aTarget.id : null); | |
294 } | |
295 | |
296 public static void static_cancelPreviousPerformRequestsWithTarget_selector_object_ (id aTarget, objc.SEL aSelector, id anArgument) | |
297 { | |
298 OS.objc_msgSend(OS.class_NSObject, OS.sel_cancelPreviousPerformRequestsWithTarget_1selector_1object_1, aTarget !is null ? aTarget.id : null, | |
299 aSelector, anArgument !is null ? anArgument.id : null); | |
300 } | |
301 | |
302 public static objc.Class static_class () | |
303 { | |
304 return cast(objc.Class)OS.objc_msgSend(OS.class_NSObject, OS.sel_class); | |
305 } | |
306 | |
307 //public objc.Class class() { | |
308 // return OS.objc_msgSend(this.id, OS.sel_class); | |
309 //} | |
310 | |
311 public FourCharCode classCode () | |
312 { | |
313 return OS.objc_msgSend(this.id, OS.sel_classCode); | |
314 } | |
315 | |
316 public NSClassDescription classDescription () | |
317 { | |
318 objc.id result = OS.objc_msgSend(this.id, OS.sel_classDescription); | |
319 return result !is null ? new NSClassDescription(result) : null; | |
320 } | |
321 | |
322 public static NSArray classFallbacksForKeyedArchiver () | |
323 { | |
324 objc.id result = OS.objc_msgSend(OS.class_NSObject, OS.sel_classFallbacksForKeyedArchiver); | |
325 return result !is null ? new NSArray(result) : null; | |
326 } | |
327 | |
328 public objc.Class classForArchiver () | |
329 { | |
330 return cast(objc.Class) OS.objc_msgSend(this.id, OS.sel_classForArchiver); | |
331 } | |
332 | |
333 public objc.Class classForCoder () | |
334 { | |
335 return cast(objc.Class) OS.objc_msgSend(this.id, OS.sel_classForCoder); | |
336 } | |
337 | |
338 public objc.Class classForKeyedArchiver () | |
339 { | |
340 return cast(objc.Class) OS.objc_msgSend(this.id, OS.sel_classForKeyedArchiver); | |
341 } | |
342 | |
343 public static objc.Class classForKeyedUnarchiver () | |
344 { | |
345 return cast(objc.Class) OS.objc_msgSend(OS.class_NSObject, OS.sel_classForKeyedUnarchiver); | |
346 } | |
347 | |
348 public objc.Class classForPortCoder () | |
349 { | |
350 return cast(objc.Class) OS.objc_msgSend(this.id, OS.sel_classForPortCoder); | |
351 } | |
352 | |
353 public NSString className () | |
354 { | |
355 objc.id result = OS.objc_msgSend(this.id, OS.sel_className); | |
356 return result !is null ? new NSString(result) : null; | |
357 } | |
358 | |
359 public id coerceValue (id value, NSString key) | |
360 { | |
361 objc.id result = OS.objc_msgSend(this.id, OS.sel_coerceValue_1forKey_1, value !is null ? value.id : null, key !is null ? key.id : null); | |
362 return result !is null ? new id(result) : null; | |
363 } | |
364 | |
365 //public bool conformsToProtocol_(Protocol aProtocol) { | |
366 // return OS.objc_msgSend(this.id, OS.sel_conformsToProtocol_1, aProtocol !is null ? aProtocol.id : null) !is null; | |
367 //} | |
368 // | |
369 //public static bool static_conformsToProtocol_(Protocol protocol) { | |
370 // return OS.objc_msgSend(OS.class_NSObject, OS.sel_conformsToProtocol_1, protocol !is null ? protocol.id : null) !is null; | |
371 //} | |
372 | |
373 public void connection_didCancelAuthenticationChallenge_ (NSURLConnection connection, NSURLAuthenticationChallenge challenge) | |
374 { | |
375 OS.objc_msgSend(this.id, OS.sel_connection_1didCancelAuthenticationChallenge_1, connection !is null ? connection.id : null, | |
376 challenge !is null ? challenge.id : null); | |
377 } | |
378 | |
379 public void connection_didFailWithError_ (NSURLConnection connection, NSError error) | |
380 { | |
381 OS.objc_msgSend(this.id, OS.sel_connection_1didFailWithError_1, connection !is null ? connection.id : null, error !is null ? error.id : null); | |
382 } | |
383 | |
384 public void connection_didReceiveAuthenticationChallenge_ (NSURLConnection connection, NSURLAuthenticationChallenge challenge) | |
385 { | |
386 OS.objc_msgSend(this.id, OS.sel_connection_1didReceiveAuthenticationChallenge_1, connection !is null ? connection.id : null, | |
387 challenge !is null ? challenge.id : null); | |
388 } | |
389 | |
390 public void connection_didReceiveData_ (NSURLConnection connection, NSData data) | |
391 { | |
392 OS.objc_msgSend(this.id, OS.sel_connection_1didReceiveData_1, connection !is null ? connection.id : null, data !is null ? data.id : null); | |
393 } | |
394 | |
395 public void connection_didReceiveResponse_ (NSURLConnection connection, NSURLResponse response) | |
396 { | |
397 OS.objc_msgSend(this.id, OS.sel_connection_1didReceiveResponse_1, connection !is null ? connection.id : null, | |
398 response !is null ? response.id : null); | |
399 } | |
400 | |
401 public bool connection_handleRequest_ (NSConnection connection, NSDistantObjectRequest doreq) | |
402 { | |
403 return OS.objc_msgSend(this.id, OS.sel_connection_1handleRequest_1, connection !is null ? connection.id : null, | |
404 doreq !is null ? doreq.id : null) !is null; | |
405 } | |
406 | |
407 public bool connection_shouldMakeNewConnection_ (NSConnection ancestor, NSConnection conn) | |
408 { | |
409 return OS.objc_msgSend(this.id, OS.sel_connection_1shouldMakeNewConnection_1, ancestor !is null ? ancestor.id : null, | |
410 conn !is null ? conn.id : null) !is null; | |
411 } | |
412 | |
413 public NSCachedURLResponse connection_willCacheResponse_ (NSURLConnection connection, NSCachedURLResponse cachedResponse) | |
414 { | |
415 objc.id result = OS.objc_msgSend(this.id, OS.sel_connection_1willCacheResponse_1, connection !is null ? connection.id : null, | |
416 cachedResponse !is null ? cachedResponse.id : null); | |
417 return result !is null ? new NSCachedURLResponse(result) : null; | |
418 } | |
419 | |
420 public NSURLRequest connection_willSendRequest_redirectResponse_ (NSURLConnection connection, NSURLRequest request, NSURLResponse response) | |
421 { | |
422 objc.id result = OS.objc_msgSend(this.id, OS.sel_connection_1willSendRequest_1redirectResponse_1, connection !is null ? connection.id : null, | |
423 request !is null ? request.id : null, response !is null ? response.id : null); | |
424 return result !is null ? new NSURLRequest(result) : null; | |
425 } | |
426 | |
427 public void connectionDidFinishLoading (NSURLConnection connection) | |
428 { | |
429 OS.objc_msgSend(this.id, OS.sel_connectionDidFinishLoading_1, connection !is null ? connection.id : null); | |
430 } | |
431 | |
432 public void continueWithoutCredentialForAuthenticationChallenge (NSURLAuthenticationChallenge challenge) | |
433 { | |
434 OS.objc_msgSend(this.id, OS.sel_continueWithoutCredentialForAuthenticationChallenge_1, challenge !is null ? challenge.id : null); | |
435 } | |
436 | |
437 public id copy () | |
438 { | |
439 objc.id result = OS.objc_msgSend(this.id, OS.sel_copy); | |
440 return result !is null ? new id(result) : null; | |
441 } | |
442 | |
443 public id copyScriptingValue (id value, NSString key, NSDictionary properties) | |
444 { | |
445 objc.id result = OS.objc_msgSend(this.id, OS.sel_copyScriptingValue_1forKey_1withProperties_1, value !is null ? value.id : null, | |
446 key !is null ? key.id : null, properties !is null ? properties.id : null); | |
447 return result !is null ? new id(result) : null; | |
448 } | |
449 | |
450 public id copyWithZone_ (NSZone* zone) | |
451 { | |
452 objc.id result = OS.objc_msgSend(this.id, OS.sel_copyWithZone_1, zone); | |
453 return result !is null ? new id(result) : null; | |
454 } | |
455 | |
456 public static id static_copyWithZone_ (NSZone* zone) | |
457 { | |
458 objc.id result = OS.objc_msgSend(OS.class_NSObject, OS.sel_copyWithZone_1, zone); | |
459 return result !is null ? new id(result) : null; | |
460 } | |
461 | |
462 public NSUInteger countByEnumeratingWithState (NSFastEnumerationState* state, objc.id* stackbuf, NSUInteger len) | |
463 { | |
464 return OS.objc_msgSend(this.id, OS.sel_countByEnumeratingWithState_1objects_1count_1, state, stackbuf, len); | |
465 } | |
466 | |
467 public id createConversationForConnection (NSConnection conn) | |
468 { | |
469 objc.id result = OS.objc_msgSend(this.id, OS.sel_createConversationForConnection_1, conn !is null ? conn.id : null); | |
470 return result !is null ? new id(result) : null; | |
471 } | |
472 | |
473 public void dealloc () | |
474 { | |
475 OS.objc_msgSend(this.id, OS.sel_dealloc); | |
476 } | |
477 | |
478 public NSString description () | |
479 { | |
480 objc.id result = OS.objc_msgSend(this.id, OS.sel_description); | |
481 return result !is null ? new NSString(result) : null; | |
482 } | |
483 | |
484 public static NSString static_description () | |
485 { | |
486 objc.id result = OS.objc_msgSend(OS.class_NSObject, OS.sel_description); | |
487 return result !is null ? new NSString(result) : null; | |
488 } | |
489 | |
490 public NSDictionary dictionaryWithValuesForKeys (NSArray keys) | |
491 { | |
492 objc.id result = OS.objc_msgSend(this.id, OS.sel_dictionaryWithValuesForKeys_1, keys !is null ? keys.id : null); | |
493 return result !is null ? new NSDictionary(result) : null; | |
494 } | |
495 | |
496 public void didChange (NSKeyValueChange changeKind, NSIndexSet indexes, NSString key) | |
497 { | |
498 OS.objc_msgSend(this.id, OS.sel_didChange_1valuesAtIndexes_1forKey_1, changeKind, indexes !is null ? indexes.id : null, | |
499 key !is null ? key.id : null); | |
500 } | |
501 | |
502 public void didChangeValueForKey_ (NSString key) | |
503 { | |
504 OS.objc_msgSend(this.id, OS.sel_didChangeValueForKey_1, key !is null ? key.id : null); | |
505 } | |
506 | |
507 public void didChangeValueForKey_withSetMutation_usingObjects_ (NSString key, NSKeyValueSetMutationKind mutationKind, NSSet objects) | |
508 { | |
509 OS.objc_msgSend(this.id, OS.sel_didChangeValueForKey_1withSetMutation_1usingObjects_1, key !is null ? key.id : null, mutationKind, | |
510 objects !is null ? objects.id : null); | |
511 } | |
512 | |
513 public bool doesContain (id object) | |
514 { | |
515 return OS.objc_msgSend(this.id, OS.sel_doesContain_1, object !is null ? object.id : null) !is null; | |
516 } | |
517 | |
518 public void doesNotRecognizeSelector (objc.SEL aSelector) | |
519 { | |
520 OS.objc_msgSend(this.id, OS.sel_doesNotRecognizeSelector_1, aSelector); | |
521 } | |
522 | |
523 public void download_decideDestinationWithSuggestedFilename_ (NSURLDownload download, NSString filename) | |
524 { | |
525 OS.objc_msgSend(this.id, OS.sel_download_1decideDestinationWithSuggestedFilename_1, download !is null ? download.id : null, | |
526 filename !is null ? filename.id : null); | |
527 } | |
528 | |
529 public void download_didCancelAuthenticationChallenge_ (NSURLDownload download, NSURLAuthenticationChallenge challenge) | |
530 { | |
531 OS.objc_msgSend(this.id, OS.sel_download_1didCancelAuthenticationChallenge_1, download !is null ? download.id : null, | |
532 challenge !is null ? challenge.id : null); | |
533 } | |
534 | |
535 public void download_didCreateDestination_ (NSURLDownload download, NSString path) | |
536 { | |
537 OS.objc_msgSend(this.id, OS.sel_download_1didCreateDestination_1, download !is null ? download.id : null, path !is null ? path.id : null); | |
538 } | |
539 | |
540 public void download_didFailWithError_ (NSURLDownload download, NSError error) | |
541 { | |
542 OS.objc_msgSend(this.id, OS.sel_download_1didFailWithError_1, download !is null ? download.id : null, error !is null ? error.id : null); | |
543 } | |
544 | |
545 public void download_didReceiveAuthenticationChallenge_ (NSURLDownload download, NSURLAuthenticationChallenge challenge) | |
546 { | |
547 OS.objc_msgSend(this.id, OS.sel_download_1didReceiveAuthenticationChallenge_1, download !is null ? download.id : null, | |
548 challenge !is null ? challenge.id : null); | |
549 } | |
550 | |
551 public void download_didReceiveDataOfLength_ (NSURLDownload download, NSUInteger length) | |
552 { | |
553 OS.objc_msgSend(this.id, OS.sel_download_1didReceiveDataOfLength_1, download !is null ? download.id : null, length); | |
554 } | |
555 | |
556 public void download_didReceiveResponse_ (NSURLDownload download, NSURLResponse response) | |
557 { | |
558 OS.objc_msgSend(this.id, OS.sel_download_1didReceiveResponse_1, download !is null ? download.id : null, | |
559 response !is null ? response.id : null); | |
560 } | |
561 | |
562 public bool download_shouldDecodeSourceDataOfMIMEType_ (NSURLDownload download, NSString encodingType) | |
563 { | |
564 return OS.objc_msgSend(this.id, OS.sel_download_1shouldDecodeSourceDataOfMIMEType_1, download !is null ? download.id : null, | |
565 encodingType !is null ? encodingType.id : null) !is null; | |
566 } | |
567 | |
568 public void download_willResumeWithResponse_fromByte_ (NSURLDownload download, NSURLResponse response, long startingByte) | |
569 { | |
570 OS.objc_msgSend(this.id, OS.sel_download_1willResumeWithResponse_1fromByte_1, download !is null ? download.id : null, | |
571 response !is null ? response.id : null, startingByte); | |
572 } | |
573 | |
574 public NSURLRequest download_willSendRequest_redirectResponse_ (NSURLDownload download, NSURLRequest request, NSURLResponse redirectResponse) | |
575 { | |
576 objc.id result = OS.objc_msgSend(this.id, OS.sel_download_1willSendRequest_1redirectResponse_1, download !is null ? download.id : null, | |
577 request !is null ? request.id : null, redirectResponse !is null ? redirectResponse.id : null); | |
578 return result !is null ? new NSURLRequest(result) : null; | |
579 } | |
580 | |
581 public void downloadDidBegin (NSURLDownload download) | |
582 { | |
583 OS.objc_msgSend(this.id, OS.sel_downloadDidBegin_1, download !is null ? download.id : null); | |
584 } | |
585 | |
586 public void downloadDidFinish (NSURLDownload download) | |
587 { | |
588 OS.objc_msgSend(this.id, OS.sel_downloadDidFinish_1, download !is null ? download.id : null); | |
589 } | |
590 | |
591 public void encodeWithCoder (NSCoder aCoder) | |
592 { | |
593 OS.objc_msgSend(this.id, OS.sel_encodeWithCoder_1, aCoder !is null ? aCoder.id : null); | |
594 } | |
595 | |
596 public NSDecimalNumber exceptionDuringOperation (objc.SEL operation, NSCalculationError error, NSDecimalNumber leftOperand, NSDecimalNumber rightOperand) | |
597 { | |
598 objc.id result = OS.objc_msgSend(this.id, OS.sel_exceptionDuringOperation_1error_1leftOperand_1rightOperand_1, operation, error, | |
599 leftOperand !is null ? leftOperand.id : null, rightOperand !is null ? rightOperand.id : null); | |
600 return result !is null ? new NSDecimalNumber(result) : null; | |
601 } | |
602 | |
603 public bool fileManager_shouldCopyItemAtPath_toPath_ (NSFileManager fileManager, NSString srcPath, NSString dstPath) | |
604 { | |
605 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldCopyItemAtPath_1toPath_1, fileManager !is null ? fileManager.id : null, | |
606 srcPath !is null ? srcPath.id : null, dstPath !is null ? dstPath.id : null) !is null; | |
607 } | |
608 | |
609 public bool fileManager_shouldLinkItemAtPath_toPath_ (NSFileManager fileManager, NSString srcPath, NSString dstPath) | |
610 { | |
611 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldLinkItemAtPath_1toPath_1, fileManager !is null ? fileManager.id : null, | |
612 srcPath !is null ? srcPath.id : null, dstPath !is null ? dstPath.id : null) !is null; | |
613 } | |
614 | |
615 public bool fileManager_shouldMoveItemAtPath_toPath_ (NSFileManager fileManager, NSString srcPath, NSString dstPath) | |
616 { | |
617 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldMoveItemAtPath_1toPath_1, fileManager !is null ? fileManager.id : null, | |
618 srcPath !is null ? srcPath.id : null, dstPath !is null ? dstPath.id : null) !is null; | |
619 } | |
620 | |
621 public bool fileManager_shouldProceedAfterError_ (NSFileManager fm, NSDictionary errorInfo) | |
622 { | |
623 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldProceedAfterError_1, fm !is null ? fm.id : null, | |
624 errorInfo !is null ? errorInfo.id : null) !is null; | |
625 } | |
626 | |
627 public bool fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ (NSFileManager fileManager, NSError error, NSString srcPath, | |
628 NSString dstPath) | |
629 { | |
630 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldProceedAfterError_1copyingItemAtPath_1toPath_1, | |
631 fileManager !is null ? fileManager.id : null, error !is null ? error.id : null, srcPath !is null ? srcPath.id : null, | |
632 dstPath !is null ? dstPath.id : null) !is null; | |
633 } | |
634 | |
635 public bool fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ (NSFileManager fileManager, NSError error, NSString srcPath, | |
636 NSString dstPath) | |
637 { | |
638 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldProceedAfterError_1linkingItemAtPath_1toPath_1, | |
639 fileManager !is null ? fileManager.id : null, error !is null ? error.id : null, srcPath !is null ? srcPath.id : null, | |
640 dstPath !is null ? dstPath.id : null) !is null; | |
641 } | |
642 | |
643 public bool fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ (NSFileManager fileManager, NSError error, NSString srcPath, | |
644 NSString dstPath) | |
645 { | |
646 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldProceedAfterError_1movingItemAtPath_1toPath_1, | |
647 fileManager !is null ? fileManager.id : null, error !is null ? error.id : null, srcPath !is null ? srcPath.id : null, | |
648 dstPath !is null ? dstPath.id : null) !is null; | |
649 } | |
650 | |
651 public bool fileManager_shouldProceedAfterError_removingItemAtPath_ (NSFileManager fileManager, NSError error, NSString path) | |
652 { | |
653 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldProceedAfterError_1removingItemAtPath_1, | |
654 fileManager !is null ? fileManager.id : null, error !is null ? error.id : null, path !is null ? path.id : null) !is null; | |
655 } | |
656 | |
657 public bool fileManager_shouldRemoveItemAtPath_ (NSFileManager fileManager, NSString path) | |
658 { | |
659 return OS.objc_msgSend(this.id, OS.sel_fileManager_1shouldRemoveItemAtPath_1, fileManager !is null ? fileManager.id : null, | |
660 path !is null ? path.id : null) !is null; | |
661 } | |
662 | |
663 public void fileManager_willProcessPath_ (NSFileManager fm, NSString path) | |
664 { | |
665 OS.objc_msgSend(this.id, OS.sel_fileManager_1willProcessPath_1, fm !is null ? fm.id : null, path !is null ? path.id : null); | |
666 } | |
667 | |
668 public void finalizeXX () | |
669 { | |
670 OS.objc_msgSend(this.id, OS.sel_finalize); | |
671 } | |
672 | |
673 public void forwardInvocation (NSInvocation anInvocation) | |
674 { | |
675 OS.objc_msgSend(this.id, OS.sel_forwardInvocation_1, anInvocation !is null ? anInvocation.id : null); | |
676 } | |
677 | |
678 public void handleMachMessage (void* msg) | |
679 { | |
680 OS.objc_msgSend(this.id, OS.sel_handleMachMessage_1, msg); | |
681 } | |
682 | |
683 public void handlePortMessage (NSPortMessage message) | |
684 { | |
685 OS.objc_msgSend(this.id, OS.sel_handlePortMessage_1, message !is null ? message.id : null); | |
686 } | |
687 | |
688 public id handleQueryWithUnboundKey (NSString key) | |
689 { | |
690 objc.id result = OS.objc_msgSend(this.id, OS.sel_handleQueryWithUnboundKey_1, key !is null ? key.id : null); | |
691 return result !is null ? new id(result) : null; | |
692 } | |
693 | |
694 public void handleTakeValue (id value, NSString key) | |
695 { | |
696 OS.objc_msgSend(this.id, OS.sel_handleTakeValue_1forUnboundKey_1, value !is null ? value.id : null, key !is null ? key.id : null); | |
697 } | |
698 | |
699 public NSUInteger hash () | |
700 { | |
701 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_hash); | |
702 } | |
703 | |
704 public NSArray indicesOfObjectsByEvaluatingObjectSpecifier (NSScriptObjectSpecifier specifier) | |
705 { | |
706 objc.id result = OS.objc_msgSend(this.id, OS.sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, specifier !is null ? specifier.id : null); | |
707 return result !is null ? new NSArray(result) : null; | |
708 } | |
709 | |
710 public NSObject init () | |
711 { | |
712 objc.id result = OS.objc_msgSend(this.id, OS.sel_init); | |
713 return result !is null ? this : null; | |
714 } | |
715 | |
716 public NSObject initWithCoder (NSCoder aDecoder) | |
717 { | |
718 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithCoder_1, aDecoder !is null ? aDecoder.id : null); | |
719 return result !is null ? this : null; | |
720 } | |
721 | |
722 public static void initialize () | |
723 { | |
724 OS.objc_msgSend(OS.class_NSObject, OS.sel_initialize); | |
725 } | |
726 | |
727 public void insertValue_atIndex_inPropertyWithKey_ (id value, NSUInteger index, NSString key) | |
728 { | |
729 OS.objc_msgSend(this.id, OS.sel_insertValue_1atIndex_1inPropertyWithKey_1, value !is null ? value.id : null, index, | |
730 key !is null ? key.id : null); | |
731 } | |
732 | |
733 public void insertValue_inPropertyWithKey_ (id value, NSString key) | |
734 { | |
735 OS.objc_msgSend(this.id, OS.sel_insertValue_1inPropertyWithKey_1, value !is null ? value.id : null, key !is null ? key.id : null); | |
736 } | |
737 | |
738 public static objc.IMP instanceMethodForSelector (objc.SEL aSelector) | |
739 { | |
740 return cast(objc.IMP) OS.objc_msgSend(OS.class_NSObject, OS.sel_instanceMethodForSelector_1, aSelector); | |
741 } | |
742 | |
743 public static NSMethodSignature instanceMethodSignatureForSelector (objc.SEL aSelector) | |
744 { | |
745 objc.id result = OS.objc_msgSend(OS.class_NSObject, OS.sel_instanceMethodSignatureForSelector_1, aSelector); | |
746 return result !is null ? new NSMethodSignature(result) : null; | |
747 } | |
748 | |
749 public static bool instancesRespondToSelector (objc.SEL aSelector) | |
750 { | |
751 return OS.objc_msgSend(OS.class_NSObject, OS.sel_instancesRespondToSelector_1, aSelector) !is null; | |
752 } | |
753 | |
754 public NSString inverseForRelationshipKey (NSString relationshipKey) | |
755 { | |
756 objc.id result = OS.objc_msgSend(this.id, OS.sel_inverseForRelationshipKey_1, relationshipKey !is null ? relationshipKey.id : null); | |
757 return result !is null ? new NSString(result) : null; | |
758 } | |
759 | |
760 public bool isCaseInsensitiveLike (NSString object) | |
761 { | |
762 return OS.objc_msgSend(this.id, OS.sel_isCaseInsensitiveLike_1, object !is null ? object.id : null) !is null; | |
763 } | |
764 | |
765 public bool isEqual (id object) | |
766 { | |
767 return OS.objc_msgSend(this.id, OS.sel_isEqual_1, object !is null ? object.id : null) !is null; | |
768 } | |
769 | |
770 public bool isEqualTo (id object) | |
771 { | |
772 return OS.objc_msgSend(this.id, OS.sel_isEqualTo_1, object !is null ? object.id : null) !is null; | |
773 } | |
774 | |
775 public bool isGreaterThan (id object) | |
776 { | |
777 return OS.objc_msgSend(this.id, OS.sel_isGreaterThan_1, object !is null ? object.id : null) !is null; | |
778 } | |
779 | |
780 public bool isGreaterThanOrEqualTo (id object) | |
781 { | |
782 return OS.objc_msgSend(this.id, OS.sel_isGreaterThanOrEqualTo_1, object !is null ? object.id : null) !is null; | |
783 } | |
784 | |
785 public bool isKindOfClass (objc.Class aClass) | |
786 { | |
787 return OS.objc_msgSend(this.id, OS.sel_isKindOfClass_1, aClass) !is null; | |
788 } | |
789 | |
790 public bool isLessThan (id object) | |
791 { | |
792 return OS.objc_msgSend(this.id, OS.sel_isLessThan_1, object !is null ? object.id : null) !is null; | |
793 } | |
794 | |
795 public bool isLessThanOrEqualTo (id object) | |
796 { | |
797 return OS.objc_msgSend(this.id, OS.sel_isLessThanOrEqualTo_1, object !is null ? object.id : null) !is null; | |
798 } | |
799 | |
800 public bool isLike (NSString object) | |
801 { | |
802 return OS.objc_msgSend(this.id, OS.sel_isLike_1, object !is null ? object.id : null) !is null; | |
803 } | |
804 | |
805 public bool isMemberOfClass (objc.Class aClass) | |
806 { | |
807 return OS.objc_msgSend(this.id, OS.sel_isMemberOfClass_1, aClass) !is null; | |
808 } | |
809 | |
810 public bool isNotEqualTo (id object) | |
811 { | |
812 return OS.objc_msgSend(this.id, OS.sel_isNotEqualTo_1, object !is null ? object.id : null) !is null; | |
813 } | |
814 | |
815 public bool isProxy () | |
816 { | |
817 return OS.objc_msgSend(this.id, OS.sel_isProxy) !is null; | |
818 } | |
819 | |
820 public static bool isSubclassOfClass (objc.Class aClass) | |
821 { | |
822 return OS.objc_msgSend(OS.class_NSObject, OS.sel_isSubclassOfClass_1, aClass) !is null; | |
823 } | |
824 | |
825 public static NSSet keyPathsForValuesAffectingValueForKey (NSString key) | |
826 { | |
827 objc.id result = OS.objc_msgSend(OS.class_NSObject, OS.sel_keyPathsForValuesAffectingValueForKey_1, key !is null ? key.id : null); | |
828 return result !is null ? new NSSet(result) : null; | |
829 } | |
830 | |
831 public static void load () | |
832 { | |
833 OS.objc_msgSend(OS.class_NSObject, OS.sel_load); | |
834 } | |
835 | |
836 public void lock () | |
837 { | |
838 OS.objc_msgSend(this.id, OS.sel_lock); | |
839 } | |
840 | |
841 public bool makeNewConnection (NSConnection conn, NSConnection ancestor) | |
842 { | |
843 return OS.objc_msgSend(this.id, OS.sel_makeNewConnection_1sender_1, conn !is null ? conn.id : null, ancestor !is null ? ancestor.id : null) !is null; | |
844 } | |
845 | |
846 public id metadataQuery_replacementObjectForResultObject_ (NSMetadataQuery query, NSMetadataItem result) | |
847 { | |
848 objc.id r = OS.objc_msgSend(this.id, OS.sel_metadataQuery_1replacementObjectForResultObject_1, query !is null ? query.id : null, | |
849 result !is null ? result.id : null); | |
850 return r !is null ? new id(r) : null; | |
851 } | |
852 | |
853 public id metadataQuery_replacementValueForAttribute_value_ (NSMetadataQuery query, NSString attrName, id attrValue) | |
854 { | |
855 objc.id result = OS.objc_msgSend(this.id, OS.sel_metadataQuery_1replacementValueForAttribute_1value_1, query !is null ? query.id : null, | |
856 attrName !is null ? attrName.id : null, attrValue !is null ? attrValue.id : null); | |
857 return result !is null ? new id(result) : null; | |
858 } | |
859 | |
860 public objc.IMP methodForSelector (objc.SEL aSelector) | |
861 { | |
862 return OS.objc_msgSend(this.id, OS.sel_methodForSelector_1, aSelector); | |
863 } | |
864 | |
865 public NSMethodSignature methodSignatureForSelector (objc.SEL aSelector) | |
866 { | |
867 objc.id result = OS.objc_msgSend(this.id, OS.sel_methodSignatureForSelector_1, aSelector); | |
868 return result !is null ? new NSMethodSignature(result) : null; | |
869 } | |
870 | |
871 public NSMutableArray mutableArrayValueForKey (NSString key) | |
872 { | |
873 objc.id result = OS.objc_msgSend(this.id, OS.sel_mutableArrayValueForKey_1, key !is null ? key.id : null); | |
874 return result !is null ? new NSMutableArray(result) : null; | |
875 } | |
876 | |
877 public NSMutableArray mutableArrayValueForKeyPath (NSString keyPath) | |
878 { | |
879 objc.id result = OS.objc_msgSend(this.id, OS.sel_mutableArrayValueForKeyPath_1, keyPath !is null ? keyPath.id : null); | |
880 return result !is null ? new NSMutableArray(result) : null; | |
881 } | |
882 | |
883 public id mutableCopy () | |
884 { | |
885 objc.id result = OS.objc_msgSend(this.id, OS.sel_mutableCopy); | |
886 return result !is null ? new id(result) : null; | |
887 } | |
888 | |
889 public id mutableCopyWithZone_ (NSZone* zone) | |
890 { | |
891 objc.id result = OS.objc_msgSend(this.id, OS.sel_mutableCopyWithZone_1, zone); | |
892 return result !is null ? new id(result) : null; | |
893 } | |
894 | |
895 public static id static_mutableCopyWithZone_ (NSZone* zone) | |
896 { | |
897 objc.id result = OS.objc_msgSend(OS.class_NSObject, OS.sel_mutableCopyWithZone_1, zone); | |
898 return result !is null ? new id(result) : null; | |
899 } | |
900 | |
901 public NSMutableSet mutableSetValueForKey (NSString key) | |
902 { | |
903 objc.id result = OS.objc_msgSend(this.id, OS.sel_mutableSetValueForKey_1, key !is null ? key.id : null); | |
904 return result !is null ? new NSMutableSet(result) : null; | |
905 } | |
906 | |
907 public NSMutableSet mutableSetValueForKeyPath (NSString keyPath) | |
908 { | |
909 objc.id result = OS.objc_msgSend(this.id, OS.sel_mutableSetValueForKeyPath_1, keyPath !is null ? keyPath.id : null); | |
910 return result !is null ? new NSMutableSet(result) : null; | |
911 } | |
912 | |
913 public void netService_didNotPublish_ (NSNetService sender, NSDictionary errorDict) | |
914 { | |
915 OS.objc_msgSend(this.id, OS.sel_netService_1didNotPublish_1, sender !is null ? sender.id : null, errorDict !is null ? errorDict.id : null); | |
916 } | |
917 | |
918 public void netService_didNotResolve_ (NSNetService sender, NSDictionary errorDict) | |
919 { | |
920 OS.objc_msgSend(this.id, OS.sel_netService_1didNotResolve_1, sender !is null ? sender.id : null, errorDict !is null ? errorDict.id : null); | |
921 } | |
922 | |
923 public void netService_didUpdateTXTRecordData_ (NSNetService sender, NSData data) | |
924 { | |
925 OS.objc_msgSend(this.id, OS.sel_netService_1didUpdateTXTRecordData_1, sender !is null ? sender.id : null, data !is null ? data.id : null); | |
926 } | |
927 | |
928 public void netServiceBrowser_didFindDomain_moreComing_ (NSNetServiceBrowser aNetServiceBrowser, NSString domainString, bool moreComing) | |
929 { | |
930 OS.objc_msgSend(this.id, OS.sel_netServiceBrowser_1didFindDomain_1moreComing_1, aNetServiceBrowser !is null ? aNetServiceBrowser.id : null, | |
931 domainString !is null ? domainString.id : null, moreComing); | |
932 } | |
933 | |
934 public void netServiceBrowser_didFindService_moreComing_ (NSNetServiceBrowser aNetServiceBrowser, NSNetService aNetService, bool moreComing) | |
935 { | |
936 OS.objc_msgSend(this.id, OS.sel_netServiceBrowser_1didFindService_1moreComing_1, aNetServiceBrowser !is null ? aNetServiceBrowser.id : null, | |
937 aNetService !is null ? aNetService.id : null, moreComing); | |
938 } | |
939 | |
940 public void netServiceBrowser_didNotSearch_ (NSNetServiceBrowser aNetServiceBrowser, NSDictionary errorDict) | |
941 { | |
942 OS.objc_msgSend(this.id, OS.sel_netServiceBrowser_1didNotSearch_1, aNetServiceBrowser !is null ? aNetServiceBrowser.id : null, | |
943 errorDict !is null ? errorDict.id : null); | |
944 } | |
945 | |
946 public void netServiceBrowser_didRemoveDomain_moreComing_ (NSNetServiceBrowser aNetServiceBrowser, NSString domainString, bool moreComing) | |
947 { | |
948 OS.objc_msgSend(this.id, OS.sel_netServiceBrowser_1didRemoveDomain_1moreComing_1, aNetServiceBrowser !is null ? aNetServiceBrowser.id : null, | |
949 domainString !is null ? domainString.id : null, moreComing); | |
950 } | |
951 | |
952 public void netServiceBrowser_didRemoveService_moreComing_ (NSNetServiceBrowser aNetServiceBrowser, NSNetService aNetService, bool moreComing) | |
953 { | |
954 OS.objc_msgSend(this.id, OS.sel_netServiceBrowser_1didRemoveService_1moreComing_1, | |
955 aNetServiceBrowser !is null ? aNetServiceBrowser.id : null, aNetService !is null ? aNetService.id : null, moreComing); | |
956 } | |
957 | |
958 public void netServiceBrowserDidStopSearch (NSNetServiceBrowser aNetServiceBrowser) | |
959 { | |
960 OS.objc_msgSend(this.id, OS.sel_netServiceBrowserDidStopSearch_1, aNetServiceBrowser !is null ? aNetServiceBrowser.id : null); | |
961 } | |
962 | |
963 public void netServiceBrowserWillSearch (NSNetServiceBrowser aNetServiceBrowser) | |
964 { | |
965 OS.objc_msgSend(this.id, OS.sel_netServiceBrowserWillSearch_1, aNetServiceBrowser !is null ? aNetServiceBrowser.id : null); | |
966 } | |
967 | |
968 public void netServiceDidPublish (NSNetService sender) | |
969 { | |
970 OS.objc_msgSend(this.id, OS.sel_netServiceDidPublish_1, sender !is null ? sender.id : null); | |
971 } | |
972 | |
973 public void netServiceDidResolveAddress (NSNetService sender) | |
974 { | |
975 OS.objc_msgSend(this.id, OS.sel_netServiceDidResolveAddress_1, sender !is null ? sender.id : null); | |
976 } | |
977 | |
978 public void netServiceDidStop (NSNetService sender) | |
979 { | |
980 OS.objc_msgSend(this.id, OS.sel_netServiceDidStop_1, sender !is null ? sender.id : null); | |
981 } | |
982 | |
983 public void netServiceWillPublish (NSNetService sender) | |
984 { | |
985 OS.objc_msgSend(this.id, OS.sel_netServiceWillPublish_1, sender !is null ? sender.id : null); | |
986 } | |
987 | |
988 public void netServiceWillResolve (NSNetService sender) | |
989 { | |
990 OS.objc_msgSend(this.id, OS.sel_netServiceWillResolve_1, sender !is null ? sender.id : null); | |
991 } | |
992 | |
993 //public static id new() { | |
994 // objc.id result = OS.objc_msgSend(OS.class_NSObject, OS.sel_new); | |
995 // return result !is null ? new id(result) : null; | |
996 //} | |
997 | |
998 public id newScriptingObjectOfClass (objc.Class objectClass, NSString key, id contentsValue, NSDictionary properties) | |
999 { | |
1000 objc.id result = OS.objc_msgSend(this.id, OS.sel_newScriptingObjectOfClass_1forValueForKey_1withContentsValue_1properties_1, objectClass, | |
1001 key !is null ? key.id : null, contentsValue !is null ? contentsValue.id : null, properties !is null ? properties.id : null); | |
1002 return result !is null ? new id(result) : null; | |
1003 } | |
1004 | |
1005 public NSScriptObjectSpecifier objectSpecifier () | |
1006 { | |
1007 objc.id result = OS.objc_msgSend(this.id, OS.sel_objectSpecifier); | |
1008 return result !is null ? new NSScriptObjectSpecifier(result) : null; | |
1009 } | |
1010 | |
1011 public void* observationInfo () | |
1012 { | |
1013 return cast(void*) OS.objc_msgSend(this.id, OS.sel_observationInfo); | |
1014 } | |
1015 | |
1016 public void observeValueForKeyPath (NSString keyPath, id object, NSDictionary change, void* context) | |
1017 { | |
1018 OS.objc_msgSend(this.id, OS.sel_observeValueForKeyPath_1ofObject_1change_1context_1, keyPath !is null ? keyPath.id : null, | |
1019 object !is null ? object.id : null, change !is null ? change.id : null, context); | |
1020 } | |
1021 | |
1022 public void parser_didEndElement_namespaceURI_qualifiedName_ (NSXMLParser parser, NSString elementName, NSString namespaceURI, NSString qName) | |
1023 { | |
1024 OS.objc_msgSend(this.id, OS.sel_parser_1didEndElement_1namespaceURI_1qualifiedName_1, parser !is null ? parser.id : null, | |
1025 elementName !is null ? elementName.id : null, namespaceURI !is null ? namespaceURI.id : null, qName !is null ? qName.id : null); | |
1026 } | |
1027 | |
1028 public void parser_didEndMappingPrefix_ (NSXMLParser parser, NSString prefix) | |
1029 { | |
1030 OS.objc_msgSend(this.id, OS.sel_parser_1didEndMappingPrefix_1, parser !is null ? parser.id : null, prefix !is null ? prefix.id : null); | |
1031 } | |
1032 | |
1033 public void parser_didStartElement_namespaceURI_qualifiedName_attributes_ (NSXMLParser parser, NSString elementName, NSString namespaceURI, | |
1034 NSString qName, NSDictionary attributeDict) | |
1035 { | |
1036 OS.objc_msgSend(this.id, OS.sel_parser_1didStartElement_1namespaceURI_1qualifiedName_1attributes_1, parser !is null ? parser.id : null, | |
1037 elementName !is null ? elementName.id : null, namespaceURI !is null ? namespaceURI.id : null, qName !is null ? qName.id : null, | |
1038 attributeDict !is null ? attributeDict.id : null); | |
1039 } | |
1040 | |
1041 public void parser_didStartMappingPrefix_toURI_ (NSXMLParser parser, NSString prefix, NSString namespaceURI) | |
1042 { | |
1043 OS.objc_msgSend(this.id, OS.sel_parser_1didStartMappingPrefix_1toURI_1, parser !is null ? parser.id : null, | |
1044 prefix !is null ? prefix.id : null, namespaceURI !is null ? namespaceURI.id : null); | |
1045 } | |
1046 | |
1047 public void parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ (NSXMLParser parser, NSString attributeName, | |
1048 NSString elementName, NSString type, NSString defaultValue) | |
1049 { | |
1050 OS.objc_msgSend(this.id, OS.sel_parser_1foundAttributeDeclarationWithName_1forElement_1type_1defaultValue_1, | |
1051 parser !is null ? parser.id : null, attributeName !is null ? attributeName.id : null, elementName !is null ? elementName.id : null, | |
1052 type !is null ? type.id : null, defaultValue !is null ? defaultValue.id : null); | |
1053 } | |
1054 | |
1055 public void parser_foundCDATA_ (NSXMLParser parser, NSData CDATABlock) | |
1056 { | |
1057 OS.objc_msgSend(this.id, OS.sel_parser_1foundCDATA_1, parser !is null ? parser.id : null, CDATABlock !is null ? CDATABlock.id : null); | |
1058 } | |
1059 | |
1060 public void parser_foundCharacters_ (NSXMLParser parser, NSString string) | |
1061 { | |
1062 OS.objc_msgSend(this.id, OS.sel_parser_1foundCharacters_1, parser !is null ? parser.id : null, string !is null ? string.id : null); | |
1063 } | |
1064 | |
1065 public void parser_foundComment_ (NSXMLParser parser, NSString comment) | |
1066 { | |
1067 OS.objc_msgSend(this.id, OS.sel_parser_1foundComment_1, parser !is null ? parser.id : null, comment !is null ? comment.id : null); | |
1068 } | |
1069 | |
1070 public void parser_foundElementDeclarationWithName_model_ (NSXMLParser parser, NSString elementName, NSString model) | |
1071 { | |
1072 OS.objc_msgSend(this.id, OS.sel_parser_1foundElementDeclarationWithName_1model_1, parser !is null ? parser.id : null, | |
1073 elementName !is null ? elementName.id : null, model !is null ? model.id : null); | |
1074 } | |
1075 | |
1076 public void parser_foundExternalEntityDeclarationWithName_publicID_systemID_ (NSXMLParser parser, NSString name, NSString publicID, | |
1077 NSString systemID) | |
1078 { | |
1079 OS.objc_msgSend(this.id, OS.sel_parser_1foundExternalEntityDeclarationWithName_1publicID_1systemID_1, parser !is null ? parser.id : null, | |
1080 name !is null ? name.id : null, publicID !is null ? publicID.id : null, systemID !is null ? systemID.id : null); | |
1081 } | |
1082 | |
1083 public void parser_foundIgnorableWhitespace_ (NSXMLParser parser, NSString whitespaceString) | |
1084 { | |
1085 OS.objc_msgSend(this.id, OS.sel_parser_1foundIgnorableWhitespace_1, parser !is null ? parser.id : null, | |
1086 whitespaceString !is null ? whitespaceString.id : null); | |
1087 } | |
1088 | |
1089 public void parser_foundInternalEntityDeclarationWithName_value_ (NSXMLParser parser, NSString name, NSString value) | |
1090 { | |
1091 OS.objc_msgSend(this.id, OS.sel_parser_1foundInternalEntityDeclarationWithName_1value_1, parser !is null ? parser.id : null, | |
1092 name !is null ? name.id : null, value !is null ? value.id : null); | |
1093 } | |
1094 | |
1095 public void parser_foundNotationDeclarationWithName_publicID_systemID_ (NSXMLParser parser, NSString name, NSString publicID, NSString systemID) | |
1096 { | |
1097 OS.objc_msgSend(this.id, OS.sel_parser_1foundNotationDeclarationWithName_1publicID_1systemID_1, parser !is null ? parser.id : null, | |
1098 name !is null ? name.id : null, publicID !is null ? publicID.id : null, systemID !is null ? systemID.id : null); | |
1099 } | |
1100 | |
1101 public void parser_foundProcessingInstructionWithTarget_data_ (NSXMLParser parser, NSString target, NSString data) | |
1102 { | |
1103 OS.objc_msgSend(this.id, OS.sel_parser_1foundProcessingInstructionWithTarget_1data_1, parser !is null ? parser.id : null, | |
1104 target !is null ? target.id : null, data !is null ? data.id : null); | |
1105 } | |
1106 | |
1107 public void parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ (NSXMLParser parser, NSString name, NSString publicID, | |
1108 NSString systemID, NSString notationName) | |
1109 { | |
1110 OS.objc_msgSend(this.id, OS.sel_parser_1foundUnparsedEntityDeclarationWithName_1publicID_1systemID_1notationName_1, | |
1111 parser !is null ? parser.id : null, name !is null ? name.id : null, publicID !is null ? publicID.id : null, | |
1112 systemID !is null ? systemID.id : null, notationName !is null ? notationName.id : null); | |
1113 } | |
1114 | |
1115 public void parser_parseErrorOccurred_ (NSXMLParser parser, NSError parseError) | |
1116 { | |
1117 OS.objc_msgSend(this.id, OS.sel_parser_1parseErrorOccurred_1, parser !is null ? parser.id : null, parseError !is null ? parseError.id : null); | |
1118 } | |
1119 | |
1120 public NSData parser_resolveExternalEntityName_systemID_ (NSXMLParser parser, NSString name, NSString systemID) | |
1121 { | |
1122 objc.id result = OS.objc_msgSend(this.id, OS.sel_parser_1resolveExternalEntityName_1systemID_1, parser !is null ? parser.id : null, | |
1123 name !is null ? name.id : null, systemID !is null ? systemID.id : null); | |
1124 return result !is null ? new NSData(result) : null; | |
1125 } | |
1126 | |
1127 public void parser_validationErrorOccurred_ (NSXMLParser parser, NSError validationError) | |
1128 { | |
1129 OS.objc_msgSend(this.id, OS.sel_parser_1validationErrorOccurred_1, parser !is null ? parser.id : null, | |
1130 validationError !is null ? validationError.id : null); | |
1131 } | |
1132 | |
1133 public void parserDidEndDocument (NSXMLParser parser) | |
1134 { | |
1135 OS.objc_msgSend(this.id, OS.sel_parserDidEndDocument_1, parser !is null ? parser.id : null); | |
1136 } | |
1137 | |
1138 public void parserDidStartDocument (NSXMLParser parser) | |
1139 { | |
1140 OS.objc_msgSend(this.id, OS.sel_parserDidStartDocument_1, parser !is null ? parser.id : null); | |
1141 } | |
1142 | |
1143 public id performSelector_ (objc.SEL aSelector) | |
1144 { | |
1145 objc.id result = OS.objc_msgSend(this.id, OS.sel_performSelector_1, aSelector); | |
1146 return result !is null ? new id(result) : null; | |
1147 } | |
1148 | |
1149 public void performSelector_onThread_withObject_waitUntilDone_ (objc.SEL aSelector, NSThread thr, id arg, bool wait) | |
1150 { | |
1151 OS.objc_msgSend(this.id, OS.sel_performSelector_1onThread_1withObject_1waitUntilDone_1, aSelector, thr !is null ? thr.id : null, | |
1152 arg !is null ? arg.id : null, wait); | |
1153 } | |
1154 | |
1155 public void performSelector_onThread_withObject_waitUntilDone_modes_ (objc.SEL aSelector, NSThread thr, id arg, bool wait, NSArray array) | |
1156 { | |
1157 OS.objc_msgSend(this.id, OS.sel_performSelector_1onThread_1withObject_1waitUntilDone_1modes_1, aSelector, thr !is null ? thr.id : null, | |
1158 arg !is null ? arg.id : null, wait, array !is null ? array.id : null); | |
1159 } | |
1160 | |
1161 public id performSelector_withObject_ (objc.SEL aSelector, id object) | |
1162 { | |
1163 objc.id result = OS.objc_msgSend(this.id, OS.sel_performSelector_1withObject_1, aSelector, object !is null ? object.id : null); | |
1164 return result !is null ? new id(result) : null; | |
1165 } | |
1166 | |
1167 public void performSelector_withObject_afterDelay_ (objc.SEL aSelector, id anArgument, NSTimeInterval delay) | |
1168 { | |
1169 OS.objc_msgSend(this.id, OS.sel_performSelector_1withObject_1afterDelay_1, aSelector, anArgument !is null ? anArgument.id : null, delay); | |
1170 } | |
1171 | |
1172 public void performSelector_withObject_afterDelay_inModes_ (objc.SEL aSelector, id anArgument, NSTimeInterval delay, NSArray modes) | |
1173 { | |
1174 OS.objc_msgSend(this.id, OS.sel_performSelector_1withObject_1afterDelay_1inModes_1, aSelector, anArgument !is null ? anArgument.id : null, | |
1175 delay, modes !is null ? modes.id : null); | |
1176 } | |
1177 | |
1178 public id performSelector_withObject_withObject_ (objc.SEL aSelector, id object1, id object2) | |
1179 { | |
1180 objc.id result = OS.objc_msgSend(this.id, OS.sel_performSelector_1withObject_1withObject_1, aSelector, object1 !is null ? object1.id : null, | |
1181 object2 !is null ? object2.id : null); | |
1182 return result !is null ? new id(result) : null; | |
1183 } | |
1184 | |
1185 public void performSelectorInBackground (objc.SEL aSelector, id arg) | |
1186 { | |
1187 OS.objc_msgSend(this.id, OS.sel_performSelectorInBackground_1withObject_1, aSelector, arg !is null ? arg.id : null); | |
1188 } | |
1189 | |
1190 public void performSelectorOnMainThread_withObject_waitUntilDone_ (objc.SEL aSelector, id arg, bool wait) | |
1191 { | |
1192 OS.objc_msgSend(this.id, OS.sel_performSelectorOnMainThread_1withObject_1waitUntilDone_1, aSelector, arg !is null ? arg.id : null, wait); | |
1193 } | |
1194 | |
1195 public void performSelectorOnMainThread_withObject_waitUntilDone_modes_ (objc.SEL aSelector, id arg, bool wait, NSArray array) | |
1196 { | |
1197 OS.objc_msgSend(this.id, OS.sel_performSelectorOnMainThread_1withObject_1waitUntilDone_1modes_1, aSelector, arg !is null ? arg.id : null, | |
1198 wait, array !is null ? array.id : null); | |
1199 } | |
1200 | |
1201 public static void poseAsClass (objc.Class aClass) | |
1202 { | |
1203 OS.objc_msgSend(OS.class_NSObject, OS.sel_poseAsClass_1, aClass); | |
1204 } | |
1205 | |
1206 public void release () | |
1207 { | |
1208 OS.objc_msgSend(this.id, OS.sel_release); | |
1209 } | |
1210 | |
1211 public void removeObserver (NSObject observer, NSString keyPath) | |
1212 { | |
1213 OS.objc_msgSend(this.id, OS.sel_removeObserver_1forKeyPath_1, observer !is null ? observer.id : null, keyPath !is null ? keyPath.id : null); | |
1214 } | |
1215 | |
1216 public void removeObserver (NSObject observer) | |
1217 { | |
1218 OS.objc_msgSend(this.id, OS.sel_removeObserver_1, observer !is null ? observer.id : null); | |
1219 } | |
1220 | |
1221 public void removeValueAtIndex (NSUInteger index, NSString key) | |
1222 { | |
1223 OS.objc_msgSend(this.id, OS.sel_removeValueAtIndex_1fromPropertyWithKey_1, index, key !is null ? key.id : null); | |
1224 } | |
1225 | |
1226 public void replaceValueAtIndex (NSUInteger index, NSString key, id value) | |
1227 { | |
1228 OS.objc_msgSend(this.id, OS.sel_replaceValueAtIndex_1inPropertyWithKey_1withValue_1, index, key !is null ? key.id : null, | |
1229 value !is null ? value.id : null); | |
1230 } | |
1231 | |
1232 public id replacementObjectForArchiver (NSArchiver archiver) | |
1233 { | |
1234 objc.id result = OS.objc_msgSend(this.id, OS.sel_replacementObjectForArchiver_1, archiver !is null ? archiver.id : null); | |
1235 return result !is null ? new id(result) : null; | |
1236 } | |
1237 | |
1238 public id replacementObjectForCoder (NSCoder aCoder) | |
1239 { | |
1240 objc.id result = OS.objc_msgSend(this.id, OS.sel_replacementObjectForCoder_1, aCoder !is null ? aCoder.id : null); | |
1241 return result !is null ? new id(result) : null; | |
1242 } | |
1243 | |
1244 public id replacementObjectForKeyedArchiver (NSKeyedArchiver archiver) | |
1245 { | |
1246 objc.id result = OS.objc_msgSend(this.id, OS.sel_replacementObjectForKeyedArchiver_1, archiver !is null ? archiver.id : null); | |
1247 return result !is null ? new id(result) : null; | |
1248 } | |
1249 | |
1250 public id replacementObjectForPortCoder (NSPortCoder coder) | |
1251 { | |
1252 objc.id result = OS.objc_msgSend(this.id, OS.sel_replacementObjectForPortCoder_1, coder !is null ? coder.id : null); | |
1253 return result !is null ? new id(result) : null; | |
1254 } | |
1255 | |
1256 public static bool resolveClassMethod (objc.SEL sel) | |
1257 { | |
1258 return OS.objc_msgSend(OS.class_NSObject, OS.sel_resolveClassMethod_1, sel) !is null; | |
1259 } | |
1260 | |
1261 public static bool resolveInstanceMethod (objc.SEL sel) | |
1262 { | |
1263 return OS.objc_msgSend(OS.class_NSObject, OS.sel_resolveInstanceMethod_1, sel) !is null; | |
1264 } | |
1265 | |
1266 public bool respondsToSelector (objc.SEL aSelector) | |
1267 { | |
1268 return OS.objc_msgSend(this.id, OS.sel_respondsToSelector_1, aSelector) !is null; | |
1269 } | |
1270 | |
1271 public id retain () | |
1272 { | |
1273 objc.id result = OS.objc_msgSend(this.id, OS.sel_retain); | |
1274 return result !is null ? new id(result) : null; | |
1275 } | |
1276 | |
1277 public NSUInteger retainCount () | |
1278 { | |
1279 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_retainCount); | |
1280 } | |
1281 | |
1282 public NSRoundingMode roundingMode () | |
1283 { | |
1284 return cast(NSRoundingMode) OS.objc_msgSend(this.id, OS.sel_roundingMode); | |
1285 } | |
1286 | |
1287 public short scale () | |
1288 { | |
1289 return cast(short) OS.objc_msgSend(this.id, OS.sel_scale); | |
1290 } | |
1291 | |
1292 public bool scriptingBeginsWith (id object) | |
1293 { | |
1294 return OS.objc_msgSend(this.id, OS.sel_scriptingBeginsWith_1, object !is null ? object.id : null) !is null; | |
1295 } | |
1296 | |
1297 public bool scriptingContains (id object) | |
1298 { | |
1299 return OS.objc_msgSend(this.id, OS.sel_scriptingContains_1, object !is null ? object.id : null) !is null; | |
1300 } | |
1301 | |
1302 public bool scriptingEndsWith (id object) | |
1303 { | |
1304 return OS.objc_msgSend(this.id, OS.sel_scriptingEndsWith_1, object !is null ? object.id : null) !is null; | |
1305 } | |
1306 | |
1307 public bool scriptingIsEqualTo (id object) | |
1308 { | |
1309 return OS.objc_msgSend(this.id, OS.sel_scriptingIsEqualTo_1, object !is null ? object.id : null) !is null; | |
1310 } | |
1311 | |
1312 public bool scriptingIsGreaterThan (id object) | |
1313 { | |
1314 return OS.objc_msgSend(this.id, OS.sel_scriptingIsGreaterThan_1, object !is null ? object.id : null) !is null; | |
1315 } | |
1316 | |
1317 public bool scriptingIsGreaterThanOrEqualTo (id object) | |
1318 { | |
1319 return OS.objc_msgSend(this.id, OS.sel_scriptingIsGreaterThanOrEqualTo_1, object !is null ? object.id : null) !is null; | |
1320 } | |
1321 | |
1322 public bool scriptingIsLessThan (id object) | |
1323 { | |
1324 return OS.objc_msgSend(this.id, OS.sel_scriptingIsLessThan_1, object !is null ? object.id : null) !is null; | |
1325 } | |
1326 | |
1327 public bool scriptingIsLessThanOrEqualTo (id object) | |
1328 { | |
1329 return OS.objc_msgSend(this.id, OS.sel_scriptingIsLessThanOrEqualTo_1, object !is null ? object.id : null) !is null; | |
1330 } | |
1331 | |
1332 public NSDictionary scriptingProperties () | |
1333 { | |
1334 objc.id result = OS.objc_msgSend(this.id, OS.sel_scriptingProperties); | |
1335 return result !is null ? new NSDictionary(result) : null; | |
1336 } | |
1337 | |
1338 public id scriptingValueForSpecifier (NSScriptObjectSpecifier objectSpecifier) | |
1339 { | |
1340 objc.id result = OS.objc_msgSend(this.id, OS.sel_scriptingValueForSpecifier_1, objectSpecifier !is null ? objectSpecifier.id : null); | |
1341 return result !is null ? new id(result) : null; | |
1342 } | |
1343 | |
1344 public id self () | |
1345 { | |
1346 objc.id result = OS.objc_msgSend(this.id, OS.sel_self); | |
1347 return result !is null ? new id(result) : null; | |
1348 } | |
1349 | |
1350 public static void setKeys (NSArray keys, NSString dependentKey) | |
1351 { | |
1352 OS.objc_msgSend(OS.class_NSObject, OS.sel_setKeys_1triggerChangeNotificationsForDependentKey_1, keys !is null ? keys.id : null, | |
1353 dependentKey !is null ? dependentKey.id : null); | |
1354 } | |
1355 | |
1356 public void setNilValueForKey (NSString key) | |
1357 { | |
1358 OS.objc_msgSend(this.id, OS.sel_setNilValueForKey_1, key !is null ? key.id : null); | |
1359 } | |
1360 | |
1361 public void setObservationInfo (void* observationInfo) | |
1362 { | |
1363 OS.objc_msgSend(this.id, OS.sel_setObservationInfo_1, observationInfo); | |
1364 } | |
1365 | |
1366 public void setScriptingProperties (NSDictionary properties) | |
1367 { | |
1368 OS.objc_msgSend(this.id, OS.sel_setScriptingProperties_1, properties !is null ? properties.id : null); | |
1369 } | |
1370 | |
1371 public void setValue_forKey_ (id value, NSString key) | |
1372 { | |
1373 OS.objc_msgSend(this.id, OS.sel_setValue_1forKey_1, value !is null ? value.id : null, key !is null ? key.id : null); | |
1374 } | |
1375 | |
1376 public void setValue_forKeyPath_ (id value, NSString keyPath) | |
1377 { | |
1378 OS.objc_msgSend(this.id, OS.sel_setValue_1forKeyPath_1, value !is null ? value.id : null, keyPath !is null ? keyPath.id : null); | |
1379 } | |
1380 | |
1381 public void setValue_forUndefinedKey_ (id value, NSString key) | |
1382 { | |
1383 OS.objc_msgSend(this.id, OS.sel_setValue_1forUndefinedKey_1, value !is null ? value.id : null, key !is null ? key.id : null); | |
1384 } | |
1385 | |
1386 public void setValuesForKeysWithDictionary (NSDictionary keyedValues) | |
1387 { | |
1388 OS.objc_msgSend(this.id, OS.sel_setValuesForKeysWithDictionary_1, keyedValues !is null ? keyedValues.id : null); | |
1389 } | |
1390 | |
1391 public static void setVersion (NSInteger aVersion) | |
1392 { | |
1393 OS.objc_msgSend(OS.class_NSObject, OS.sel_setVersion_1, aVersion); | |
1394 } | |
1395 | |
1396 public NSRange spellServer_checkGrammarInString_language_details_ (NSSpellServer sender, NSString stringToCheck, NSString language, objc.id** details) | |
1397 { | |
1398 NSRange result; | |
1399 OS.objc_msgSend_stret(result, this.id, OS.sel_spellServer_1checkGrammarInString_1language_1details_1, sender !is null ? sender.id : null, | |
1400 stringToCheck !is null ? stringToCheck.id : null, language !is null ? language.id : null, details); | |
1401 return result; | |
1402 } | |
1403 | |
1404 public void spellServer_didForgetWord_inLanguage_ (NSSpellServer sender, NSString word, NSString language) | |
1405 { | |
1406 OS.objc_msgSend(this.id, OS.sel_spellServer_1didForgetWord_1inLanguage_1, sender !is null ? sender.id : null, word !is null ? word.id : null, | |
1407 language !is null ? language.id : null); | |
1408 } | |
1409 | |
1410 public void spellServer_didLearnWord_inLanguage_ (NSSpellServer sender, NSString word, NSString language) | |
1411 { | |
1412 OS.objc_msgSend(this.id, OS.sel_spellServer_1didLearnWord_1inLanguage_1, sender !is null ? sender.id : null, word !is null ? word.id : null, | |
1413 language !is null ? language.id : null); | |
1414 } | |
1415 | |
1416 public NSRange spellServer_findMisspelledWordInString_language_wordCount_countOnly_ (NSSpellServer sender, NSString stringToCheck, | |
1417 NSString language, int* wordCount, bool countOnly) | |
1418 { | |
1419 NSRange result; | |
1420 OS.objc_msgSend_stret(result, this.id, OS.sel_spellServer_1findMisspelledWordInString_1language_1wordCount_1countOnly_1, | |
1421 sender !is null ? sender.id : null, stringToCheck !is null ? stringToCheck.id : null, language !is null ? language.id : null, | |
1422 wordCount, countOnly); | |
1423 return result; | |
1424 } | |
1425 | |
1426 public NSArray spellServer_suggestCompletionsForPartialWordRange_inString_language_ (NSSpellServer sender, NSRange range, NSString string, | |
1427 NSString language) | |
1428 { | |
1429 objc.id result = OS.objc_msgSend(this.id, OS.sel_spellServer_1suggestCompletionsForPartialWordRange_1inString_1language_1, | |
1430 sender !is null ? sender.id : null, range, string !is null ? string.id : null, language !is null ? language.id : null); | |
1431 return result !is null ? new NSArray(result) : null; | |
1432 } | |
1433 | |
1434 public NSArray spellServer_suggestGuessesForWord_inLanguage_ (NSSpellServer sender, NSString word, NSString language) | |
1435 { | |
1436 objc.id result = OS.objc_msgSend(this.id, OS.sel_spellServer_1suggestGuessesForWord_1inLanguage_1, sender !is null ? sender.id : null, | |
1437 word !is null ? word.id : null, language !is null ? language.id : null); | |
1438 return result !is null ? new NSArray(result) : null; | |
1439 } | |
1440 | |
1441 public id storedValueForKey (NSString key) | |
1442 { | |
1443 objc.id result = OS.objc_msgSend(this.id, OS.sel_storedValueForKey_1, key !is null ? key.id : null); | |
1444 return result !is null ? new id(result) : null; | |
1445 } | |
1446 | |
1447 public void stream (NSStream aStream, NSStreamEvent eventCode) | |
1448 { | |
1449 OS.objc_msgSend(this.id, OS.sel_stream_1handleEvent_1, aStream !is null ? aStream.id : null, eventCode); | |
1450 } | |
1451 | |
1452 public static objc.Class static_superclass () | |
1453 { | |
1454 return cast(objc.Class) OS.objc_msgSend(OS.class_NSObject, OS.sel_superclass); | |
1455 } | |
1456 | |
1457 public objc.Class superclass () | |
1458 { | |
1459 return cast(objc.Class) OS.objc_msgSend(this.id, OS.sel_superclass); | |
1460 } | |
1461 | |
1462 public void takeStoredValue (id value, NSString key) | |
1463 { | |
1464 OS.objc_msgSend(this.id, OS.sel_takeStoredValue_1forKey_1, value !is null ? value.id : null, key !is null ? key.id : null); | |
1465 } | |
1466 | |
1467 public void takeValue_forKey_ (id value, NSString key) | |
1468 { | |
1469 OS.objc_msgSend(this.id, OS.sel_takeValue_1forKey_1, value !is null ? value.id : null, key !is null ? key.id : null); | |
1470 } | |
1471 | |
1472 public void takeValue_forKeyPath_ (id value, NSString keyPath) | |
1473 { | |
1474 OS.objc_msgSend(this.id, OS.sel_takeValue_1forKeyPath_1, value !is null ? value.id : null, keyPath !is null ? keyPath.id : null); | |
1475 } | |
1476 | |
1477 public void takeValuesFromDictionary (NSDictionary properties) | |
1478 { | |
1479 OS.objc_msgSend(this.id, OS.sel_takeValuesFromDictionary_1, properties !is null ? properties.id : null); | |
1480 } | |
1481 | |
1482 public NSArray toManyRelationshipKeys () | |
1483 { | |
1484 objc.id result = OS.objc_msgSend(this.id, OS.sel_toManyRelationshipKeys); | |
1485 return result !is null ? new NSArray(result) : null; | |
1486 } | |
1487 | |
1488 public NSArray toOneRelationshipKeys () | |
1489 { | |
1490 objc.id result = OS.objc_msgSend(this.id, OS.sel_toOneRelationshipKeys); | |
1491 return result !is null ? new NSArray(result) : null; | |
1492 } | |
1493 | |
1494 public void unableToSetNilForKey (NSString key) | |
1495 { | |
1496 OS.objc_msgSend(this.id, OS.sel_unableToSetNilForKey_1, key !is null ? key.id : null); | |
1497 } | |
1498 | |
1499 public objc.Class unarchiver_cannotDecodeObjectOfClassName_originalClasses_ (NSKeyedUnarchiver unarchiver, NSString name, NSArray classNames) | |
1500 { | |
1501 return cast(objc.Class) OS.objc_msgSend(this.id, OS.sel_unarchiver_1cannotDecodeObjectOfClassName_1originalClasses_1, | |
1502 unarchiver !is null ? unarchiver.id : null, name !is null ? name.id : null, classNames !is null ? classNames.id : null); | |
1503 } | |
1504 | |
1505 public id unarchiver_didDecodeObject_ (NSKeyedUnarchiver unarchiver, id object) | |
1506 { | |
1507 objc.id result = OS.objc_msgSend(this.id, OS.sel_unarchiver_1didDecodeObject_1, unarchiver !is null ? unarchiver.id : null, | |
1508 object !is null ? object.id : null); | |
1509 return result !is null ? new id(result) : null; | |
1510 } | |
1511 | |
1512 public void unarchiver_willReplaceObject_withObject_ (NSKeyedUnarchiver unarchiver, id object, id newObject) | |
1513 { | |
1514 OS.objc_msgSend(this.id, OS.sel_unarchiver_1willReplaceObject_1withObject_1, unarchiver !is null ? unarchiver.id : null, | |
1515 object !is null ? object.id : null, newObject !is null ? newObject.id : null); | |
1516 } | |
1517 | |
1518 public void unarchiverDidFinish (NSKeyedUnarchiver unarchiver) | |
1519 { | |
1520 OS.objc_msgSend(this.id, OS.sel_unarchiverDidFinish_1, unarchiver !is null ? unarchiver.id : null); | |
1521 } | |
1522 | |
1523 public void unarchiverWillFinish (NSKeyedUnarchiver unarchiver) | |
1524 { | |
1525 OS.objc_msgSend(this.id, OS.sel_unarchiverWillFinish_1, unarchiver !is null ? unarchiver.id : null); | |
1526 } | |
1527 | |
1528 public void unlock () | |
1529 { | |
1530 OS.objc_msgSend(this.id, OS.sel_unlock); | |
1531 } | |
1532 | |
1533 public void useCredential (NSURLCredential credential, NSURLAuthenticationChallenge challenge) | |
1534 { | |
1535 OS.objc_msgSend(this.id, OS.sel_useCredential_1forAuthenticationChallenge_1, credential !is null ? credential.id : null, | |
1536 challenge !is null ? challenge.id : null); | |
1537 } | |
1538 | |
1539 public static bool useStoredAccessor () | |
1540 { | |
1541 return OS.objc_msgSend(OS.class_NSObject, OS.sel_useStoredAccessor) !is null; | |
1542 } | |
1543 | |
1544 public bool validateValue_forKey_error_ (objc.id* ioValue, NSString inKey, objc.id** outError) | |
1545 { | |
1546 return OS.objc_msgSend(this.id, OS.sel_validateValue_1forKey_1error_1, ioValue, inKey !is null ? inKey.id : null, outError) !is null; | |
1547 } | |
1548 | |
1549 public bool validateValue_forKeyPath_error_ (objc.id* ioValue, NSString inKeyPath, objc.id** outError) | |
1550 { | |
1551 return OS.objc_msgSend(this.id, OS.sel_validateValue_1forKeyPath_1error_1, ioValue, inKeyPath !is null ? inKeyPath.id : null, outError) !is null; | |
1552 } | |
1553 | |
1554 public id valueAtIndex (NSUInteger index, NSString key) | |
1555 { | |
1556 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueAtIndex_1inPropertyWithKey_1, index, key !is null ? key.id : null); | |
1557 return result !is null ? new id(result) : null; | |
1558 } | |
1559 | |
1560 public id valueForKey (NSString key) | |
1561 { | |
1562 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueForKey_1, key !is null ? key.id : null); | |
1563 return result !is null ? new id(result) : null; | |
1564 } | |
1565 | |
1566 public id valueForKeyPath (NSString keyPath) | |
1567 { | |
1568 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueForKeyPath_1, keyPath !is null ? keyPath.id : null); | |
1569 return result !is null ? new id(result) : null; | |
1570 } | |
1571 | |
1572 public id valueForUndefinedKey (NSString key) | |
1573 { | |
1574 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueForUndefinedKey_1, key !is null ? key.id : null); | |
1575 return result !is null ? new id(result) : null; | |
1576 } | |
1577 | |
1578 public id valueWithName (NSString name, NSString key) | |
1579 { | |
1580 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueWithName_1inPropertyWithKey_1, name !is null ? name.id : null, | |
1581 key !is null ? key.id : null); | |
1582 return result !is null ? new id(result) : null; | |
1583 } | |
1584 | |
1585 public id valueWithUniqueID (id uniqueID, NSString key) | |
1586 { | |
1587 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueWithUniqueID_1inPropertyWithKey_1, uniqueID !is null ? uniqueID.id : null, | |
1588 key !is null ? key.id : null); | |
1589 return result !is null ? new id(result) : null; | |
1590 } | |
1591 | |
1592 public NSDictionary valuesForKeys (NSArray keys) | |
1593 { | |
1594 objc.id result = OS.objc_msgSend(this.id, OS.sel_valuesForKeys_1, keys !is null ? keys.id : null); | |
1595 return result !is null ? new NSDictionary(result) : null; | |
1596 } | |
1597 | |
1598 public static NSInteger versionn () | |
1599 { | |
1600 return cast(NSInteger) OS.objc_msgSend(OS.class_NSObject, OS.sel_version); | |
1601 } | |
1602 | |
1603 public void willChange (NSKeyValueChange changeKind, NSIndexSet indexes, NSString key) | |
1604 { | |
1605 OS.objc_msgSend(this.id, OS.sel_willChange_1valuesAtIndexes_1forKey_1, changeKind, indexes !is null ? indexes.id : null, | |
1606 key !is null ? key.id : null); | |
1607 } | |
1608 | |
1609 public void willChangeValueForKey_ (NSString key) | |
1610 { | |
1611 OS.objc_msgSend(this.id, OS.sel_willChangeValueForKey_1, key !is null ? key.id : null); | |
1612 } | |
1613 | |
1614 public void willChangeValueForKey_withSetMutation_usingObjects_ (NSString key, NSKeyValueSetMutationKind mutationKind, NSSet objects) | |
1615 { | |
1616 OS.objc_msgSend(this.id, OS.sel_willChangeValueForKey_1withSetMutation_1usingObjects_1, key !is null ? key.id : null, mutationKind, | |
1617 objects !is null ? objects.id : null); | |
1618 } | |
1619 | |
1620 public NSZone* zone () | |
1621 { | |
1622 return cast(NSZone*) OS.objc_msgSend(this.id, OS.sel_zone); | |
1623 } | |
1624 | |
1625 } |