Mercurial > projects > dstep
comparison dstep/foundation/NSDistantObject.d @ 15:7ff919f595d5
Added the Foundation framework, again
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 15:31:48 +0200 |
parents | 89f3c3ef1fd2 |
children | 19885b43130e |
comparison
equal
deleted
inserted
replaced
14:89f3c3ef1fd2 | 15:7ff919f595d5 |
---|---|
17 { | 17 { |
18 mixin ObjcWrap; | 18 mixin ObjcWrap; |
19 | 19 |
20 static NSDistantObject proxyWithTarget (Object target, NSConnection connection) | 20 static NSDistantObject proxyWithTarget (Object target, NSConnection connection) |
21 { | 21 { |
22 return invokeObjcSelfClass!(NSDistantObject, "proxyWithTarget:connection:", Object, NSConnection)(target, connectionreturn result is this.objcObject ? this : (result !is null ? new NSDistantObject(result) : null); } | 22 return invokeObjcSelfClass!(NSDistantObject, "proxyWithTarget:connection:", Object, NSConnection)(target, connection); |
23 } | |
23 | 24 |
24 Object initWithTarget (Object target, NSConnection connection) | 25 Object initWithTarget (Object target, NSConnection connection) |
25 { | 26 { |
26 return invokeObjcSelf!(Object, "initWithTarget:connection:", Object, NSConnection)(target, connection); | 27 return invokeObjcSelf!(Object, "initWithTarget:connection:", Object, NSConnection)(target, connection); |
27 } | 28 } |
37 dObject = this; | 38 dObject = this; |
38 } | 39 } |
39 | 40 |
40 static NSDistantObject proxyWithLocal (Object target, NSConnection connection) | 41 static NSDistantObject proxyWithLocal (Object target, NSConnection connection) |
41 { | 42 { |
42 return invokeObjcSelfClass!(NSDistantObject, "proxyWithLocal:connection:", Object, NSConnection)(target, connectionreturn result is this.objcObject ? this : (result !is null ? new NSDistantObject(result) : null); } | 43 return invokeObjcSelfClass!(NSDistantObject, "proxyWithLocal:connection:", Object, NSConnection)(target, connection); |
44 } | |
43 | 45 |
44 Object initWithLocal (Object target, NSConnection connection) | 46 Object initWithLocal (Object target, NSConnection connection) |
45 { | 47 { |
46 return invokeObjcSelf!(Object, "initWithLocal:connection:", Object, NSConnection)(target, connection); | 48 return invokeObjcSelf!(Object, "initWithLocal:connection:", Object, NSConnection)(target, connection); |
47 } | 49 } |