Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSProtocolChecker.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 |
---|---|
30 { | 30 { |
31 super(id); | 31 super(id); |
32 } | 32 } |
33 | 33 |
34 //public id initWithTarget(NSObject anObject, Protocol aProtocol) { | 34 //public id initWithTarget(NSObject anObject, Protocol aProtocol) { |
35 // objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithTarget_1protocol_1, anObject !is null ? anObject.id : null, aProtocol !is null ? aProtocol.id : null); | 35 // objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithTarget_1protocol_1, anObject !is null ? anObject.id_ : null, aProtocol !is null ? aProtocol.id_ : null); |
36 // return result !is null ? new id(result) : null; | 36 // return result !is null ? new id(result) : null; |
37 //} | 37 //} |
38 // | 38 // |
39 //public Protocol protocol() { | 39 //public Protocol protocol() { |
40 // objc.id result = OS.objc_msgSend(this.id, OS.sel_protocol); | 40 // objc.id result = OS.objc_msgSend(this.id_, OS.sel_protocol); |
41 // return result !is null ? new Protocol(result) : null; | 41 // return result !is null ? new Protocol(result) : null; |
42 //} | 42 //} |
43 // | 43 // |
44 //public static id protocolCheckerWithTarget(NSObject anObject, Protocol aProtocol) { | 44 //public static id protocolCheckerWithTarget(NSObject anObject, Protocol aProtocol) { |
45 // objc.id result = OS.objc_msgSend(OS.class_NSProtocolChecker, OS.sel_protocolCheckerWithTarget_1protocol_1, anObject !is null ? anObject.id : null, aProtocol !is null ? aProtocol.id : null); | 45 // objc.id result = OS.objc_msgSend(OS.class_NSProtocolChecker, OS.sel_protocolCheckerWithTarget_1protocol_1, anObject !is null ? anObject.id_ : null, aProtocol !is null ? aProtocol.id_ : null); |
46 // return result !is null ? new id(result) : null; | 46 // return result !is null ? new id(result) : null; |
47 //} | 47 //} |
48 | 48 |
49 public NSObject target () | 49 public NSObject target () |
50 { | 50 { |
51 objc.id result = OS.objc_msgSend(this.id, OS.sel_target); | 51 objc.id result = OS.objc_msgSend(this.id_, OS.sel_target); |
52 return result !is null ? new NSObject(result) : null; | 52 return result !is null ? new NSObject(result) : null; |
53 } | 53 } |
54 | 54 |
55 } | 55 } |