Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSProxy.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 |
---|---|
50 // return OS.objc_msgSend(OS.class_NSProxy, OS.sel_class); | 50 // return OS.objc_msgSend(OS.class_NSProxy, OS.sel_class); |
51 //} | 51 //} |
52 | 52 |
53 public void dealloc () | 53 public void dealloc () |
54 { | 54 { |
55 OS.objc_msgSend(this.id, OS.sel_dealloc); | 55 OS.objc_msgSend(this.id_, OS.sel_dealloc); |
56 } | 56 } |
57 | 57 |
58 public NSString description () | 58 public NSString description () |
59 { | 59 { |
60 objc.id result = OS.objc_msgSend(this.id, OS.sel_description); | 60 objc.id result = OS.objc_msgSend(this.id_, OS.sel_description); |
61 return result !is null ? new NSString(result) : null; | 61 return result !is null ? new NSString(result) : null; |
62 } | 62 } |
63 | 63 |
64 public void finalize () | 64 public void finalize () |
65 { | 65 { |
66 OS.objc_msgSend(this.id, OS.sel_finalize); | 66 OS.objc_msgSend(this.id_, OS.sel_finalize); |
67 } | 67 } |
68 | 68 |
69 public void forwardInvocation (NSInvocation invocation) | 69 public void forwardInvocation (NSInvocation invocation) |
70 { | 70 { |
71 OS.objc_msgSend(this.id, OS.sel_forwardInvocation_1, invocation !is null ? invocation.id : null); | 71 OS.objc_msgSend(this.id_, OS.sel_forwardInvocation_1, invocation !is null ? invocation.id_ : null); |
72 } | 72 } |
73 | 73 |
74 public NSMethodSignature methodSignatureForSelector (objc.SEL sel) | 74 public NSMethodSignature methodSignatureForSelector (objc.SEL sel) |
75 { | 75 { |
76 objc.id result = OS.objc_msgSend(this.id, OS.sel_methodSignatureForSelector_1, sel); | 76 objc.id result = OS.objc_msgSend(this.id_, OS.sel_methodSignatureForSelector_1, sel); |
77 return result !is null ? new NSMethodSignature(result) : null; | 77 return result !is null ? new NSMethodSignature(result) : null; |
78 } | 78 } |
79 | 79 |
80 //public static bool respondsToSelector(int aSelector) { | 80 //public static bool respondsToSelector(int aSelector) { |
81 // return OS.objc_msgSend(OS.class_NSProxy, OS.sel_respondsToSelector_1, aSelector) !is null; | 81 // return OS.objc_msgSend(OS.class_NSProxy, OS.sel_respondsToSelector_1, aSelector) !is null; |