comparison dwt/internal/cocoa/NSDistantObject.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
32 super(id); 32 super(id);
33 } 33 }
34 34
35 public NSConnection connectionForProxy () 35 public NSConnection connectionForProxy ()
36 { 36 {
37 objc.id result = OS.objc_msgSend(this.id, OS.sel_connectionForProxy); 37 objc.id result = OS.objc_msgSend(this.id_, OS.sel_connectionForProxy);
38 return result !is null ? new NSConnection(result) : null; 38 return result !is null ? new NSConnection(result) : null;
39 } 39 }
40 40
41 public id initWithLocal (id target, NSConnection connection) 41 public id initWithLocal (id target, NSConnection connection)
42 { 42 {
43 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithLocal_1connection_1, target !is null ? target.id : null, 43 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithLocal_1connection_1, target !is null ? target.id_ : null,
44 connection !is null ? connection.id : null); 44 connection !is null ? connection.id_ : null);
45 return result !is null ? new id(result) : null; 45 return result !is null ? new id(result) : null;
46 } 46 }
47 47
48 public id initWithTarget (id target, NSConnection connection) 48 public id initWithTarget (id target, NSConnection connection)
49 { 49 {
50 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithTarget_1connection_1, target !is null ? target.id : null, 50 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithTarget_1connection_1, target !is null ? target.id_ : null,
51 connection !is null ? connection.id : null); 51 connection !is null ? connection.id_ : null);
52 return result !is null ? new id(result) : null; 52 return result !is null ? new id(result) : null;
53 } 53 }
54 54
55 public static NSDistantObject proxyWithLocal (id target, NSConnection connection) 55 public static NSDistantObject proxyWithLocal (id target, NSConnection connection)
56 { 56 {
57 objc.id result = OS.objc_msgSend(OS.class_NSDistantObject, OS.sel_proxyWithLocal_1connection_1, target !is null ? target.id : null, 57 objc.id result = OS.objc_msgSend(OS.class_NSDistantObject, OS.sel_proxyWithLocal_1connection_1, target !is null ? target.id_ : null,
58 connection !is null ? connection.id : null); 58 connection !is null ? connection.id_ : null);
59 return result !is null ? new NSDistantObject(result) : null; 59 return result !is null ? new NSDistantObject(result) : null;
60 } 60 }
61 61
62 public static NSDistantObject proxyWithTarget (id target, NSConnection connection) 62 public static NSDistantObject proxyWithTarget (id target, NSConnection connection)
63 { 63 {
64 objc.id result = OS.objc_msgSend(OS.class_NSDistantObject, OS.sel_proxyWithTarget_1connection_1, target !is null ? target.id : null, 64 objc.id result = OS.objc_msgSend(OS.class_NSDistantObject, OS.sel_proxyWithTarget_1connection_1, target !is null ? target.id_ : null,
65 connection !is null ? connection.id : null); 65 connection !is null ? connection.id_ : null);
66 return result !is null ? new NSDistantObject(result) : null; 66 return result !is null ? new NSDistantObject(result) : null;
67 } 67 }
68 68
69 //PUBLIC VOID SETPROTOCOLFORPROXY(PROTOCOL PROTO) { 69 //PUBLIC VOID SETPROTOCOLFORPROXY(PROTOCOL PROTO) {
70 // OS.OBJC_MSGSEND(THIS.ID, OS.SEL_SETPROTOCOLFORPROXY_1, PROTO !is NULL ? PROTO.ID : null); 70 // OS.OBJC_MSGSEND(THIS.ID, OS.SEL_SETPROTOCOLFORPROXY_1, PROTO !is NULL ? PROTO.ID : null);