Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSNetServiceBrowser.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 |
---|---|
33 super(id); | 33 super(id); |
34 } | 34 } |
35 | 35 |
36 public id delegatee () | 36 public id delegatee () |
37 { | 37 { |
38 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); | 38 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate); |
39 return result !is null ? new id(result) : null; | 39 return result !is null ? new id(result) : null; |
40 } | 40 } |
41 | 41 |
42 public void removeFromRunLoop (NSRunLoop aRunLoop, NSString mode) | 42 public void removeFromRunLoop (NSRunLoop aRunLoop, NSString mode) |
43 { | 43 { |
44 OS.objc_msgSend(this.id, OS.sel_removeFromRunLoop_1forMode_1, aRunLoop !is null ? aRunLoop.id : null, mode !is null ? mode.id : null); | 44 OS.objc_msgSend(this.id_, OS.sel_removeFromRunLoop_1forMode_1, aRunLoop !is null ? aRunLoop.id_ : null, mode !is null ? mode.id_ : null); |
45 } | 45 } |
46 | 46 |
47 public void scheduleInRunLoop (NSRunLoop aRunLoop, NSString mode) | 47 public void scheduleInRunLoop (NSRunLoop aRunLoop, NSString mode) |
48 { | 48 { |
49 OS.objc_msgSend(this.id, OS.sel_scheduleInRunLoop_1forMode_1, aRunLoop !is null ? aRunLoop.id : null, mode !is null ? mode.id : null); | 49 OS.objc_msgSend(this.id_, OS.sel_scheduleInRunLoop_1forMode_1, aRunLoop !is null ? aRunLoop.id_ : null, mode !is null ? mode.id_ : null); |
50 } | 50 } |
51 | 51 |
52 public void searchForAllDomains () | 52 public void searchForAllDomains () |
53 { | 53 { |
54 OS.objc_msgSend(this.id, OS.sel_searchForAllDomains); | 54 OS.objc_msgSend(this.id_, OS.sel_searchForAllDomains); |
55 } | 55 } |
56 | 56 |
57 public void searchForBrowsableDomains () | 57 public void searchForBrowsableDomains () |
58 { | 58 { |
59 OS.objc_msgSend(this.id, OS.sel_searchForBrowsableDomains); | 59 OS.objc_msgSend(this.id_, OS.sel_searchForBrowsableDomains); |
60 } | 60 } |
61 | 61 |
62 public void searchForRegistrationDomains () | 62 public void searchForRegistrationDomains () |
63 { | 63 { |
64 OS.objc_msgSend(this.id, OS.sel_searchForRegistrationDomains); | 64 OS.objc_msgSend(this.id_, OS.sel_searchForRegistrationDomains); |
65 } | 65 } |
66 | 66 |
67 public void searchForServicesOfType (NSString type, NSString domainString) | 67 public void searchForServicesOfType (NSString type, NSString domainString) |
68 { | 68 { |
69 OS.objc_msgSend(this.id, OS.sel_searchForServicesOfType_1inDomain_1, type !is null ? type.id : null, | 69 OS.objc_msgSend(this.id_, OS.sel_searchForServicesOfType_1inDomain_1, type !is null ? type.id_ : null, |
70 domainString !is null ? domainString.id : null); | 70 domainString !is null ? domainString.id_ : null); |
71 } | 71 } |
72 | 72 |
73 public void setDelegate (id delegatee) | 73 public void setDelegate (id delegatee) |
74 { | 74 { |
75 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id : null); | 75 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id_ : null); |
76 } | 76 } |
77 | 77 |
78 public void stop () | 78 public void stop () |
79 { | 79 { |
80 OS.objc_msgSend(this.id, OS.sel_stop); | 80 OS.objc_msgSend(this.id_, OS.sel_stop); |
81 } | 81 } |
82 | 82 |
83 } | 83 } |