Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSMetadataQuery.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 |
---|---|
37 super(id); | 37 super(id); |
38 } | 38 } |
39 | 39 |
40 public id delegatee () | 40 public id delegatee () |
41 { | 41 { |
42 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); | 42 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate); |
43 return result !is null ? new id(result) : null; | 43 return result !is null ? new id(result) : null; |
44 } | 44 } |
45 | 45 |
46 public void disableUpdates () | 46 public void disableUpdates () |
47 { | 47 { |
48 OS.objc_msgSend(this.id, OS.sel_disableUpdates); | 48 OS.objc_msgSend(this.id_, OS.sel_disableUpdates); |
49 } | 49 } |
50 | 50 |
51 public void enableUpdates () | 51 public void enableUpdates () |
52 { | 52 { |
53 OS.objc_msgSend(this.id, OS.sel_enableUpdates); | 53 OS.objc_msgSend(this.id_, OS.sel_enableUpdates); |
54 } | 54 } |
55 | 55 |
56 public NSArray groupedResults () | 56 public NSArray groupedResults () |
57 { | 57 { |
58 objc.id result = OS.objc_msgSend(this.id, OS.sel_groupedResults); | 58 objc.id result = OS.objc_msgSend(this.id_, OS.sel_groupedResults); |
59 return result !is null ? new NSArray(result) : null; | 59 return result !is null ? new NSArray(result) : null; |
60 } | 60 } |
61 | 61 |
62 public NSArray groupingAttributes () | 62 public NSArray groupingAttributes () |
63 { | 63 { |
64 objc.id result = OS.objc_msgSend(this.id, OS.sel_groupingAttributes); | 64 objc.id result = OS.objc_msgSend(this.id_, OS.sel_groupingAttributes); |
65 return result !is null ? new NSArray(result) : null; | 65 return result !is null ? new NSArray(result) : null; |
66 } | 66 } |
67 | 67 |
68 public NSUInteger indexOfResult (id result) | 68 public NSUInteger indexOfResult (id result) |
69 { | 69 { |
70 return OS.objc_msgSend(this.id, OS.sel_indexOfResult_1, result !is null ? result.id : null); | 70 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_indexOfResult_1, result !is null ? result.id_ : null); |
71 } | 71 } |
72 | 72 |
73 public bool isGathering () | 73 public bool isGathering () |
74 { | 74 { |
75 return OS.objc_msgSend(this.id, OS.sel_isGathering) !is null; | 75 return OS.objc_msgSend(this.id_, OS.sel_isGathering) !is null; |
76 } | 76 } |
77 | 77 |
78 public bool isStarted () | 78 public bool isStarted () |
79 { | 79 { |
80 return OS.objc_msgSend(this.id, OS.sel_isStarted) !is null; | 80 return OS.objc_msgSend(this.id_, OS.sel_isStarted) !is null; |
81 } | 81 } |
82 | 82 |
83 public bool isStopped () | 83 public bool isStopped () |
84 { | 84 { |
85 return OS.objc_msgSend(this.id, OS.sel_isStopped) !is null; | 85 return OS.objc_msgSend(this.id_, OS.sel_isStopped) !is null; |
86 } | 86 } |
87 | 87 |
88 public NSTimeInterval notificationBatchingInterval () | 88 public NSTimeInterval notificationBatchingInterval () |
89 { | 89 { |
90 return OS.objc_msgSend_fpret(this.id, OS.sel_notificationBatchingInterval); | 90 return cast(NSTimeInterval) OS.objc_msgSend_fpret(this.id_, OS.sel_notificationBatchingInterval); |
91 } | 91 } |
92 | 92 |
93 public NSPredicate predicate () | 93 public NSPredicate predicate () |
94 { | 94 { |
95 objc.id result = OS.objc_msgSend(this.id, OS.sel_predicate); | 95 objc.id result = OS.objc_msgSend(this.id_, OS.sel_predicate); |
96 return result !is null ? new NSPredicate(result) : null; | 96 return result !is null ? new NSPredicate(result) : null; |
97 } | 97 } |
98 | 98 |
99 public id resultAtIndex (NSUInteger idx) | 99 public id resultAtIndex (NSUInteger idx) |
100 { | 100 { |
101 objc.id result = OS.objc_msgSend(this.id, OS.sel_resultAtIndex_1, idx); | 101 objc.id result = OS.objc_msgSend(this.id_, OS.sel_resultAtIndex_1, idx); |
102 return result !is null ? new id(result) : null; | 102 return result !is null ? new id(result) : null; |
103 } | 103 } |
104 | 104 |
105 public objc.id resultCount () | 105 public objc.id resultCount () |
106 { | 106 { |
107 return OS.objc_msgSend(this.id, OS.sel_resultCount); | 107 return OS.objc_msgSend(this.id_, OS.sel_resultCount); |
108 } | 108 } |
109 | 109 |
110 public NSArray results () | 110 public NSArray results () |
111 { | 111 { |
112 objc.id result = OS.objc_msgSend(this.id, OS.sel_results); | 112 objc.id result = OS.objc_msgSend(this.id_, OS.sel_results); |
113 return result !is null ? new NSArray(result) : null; | 113 return result !is null ? new NSArray(result) : null; |
114 } | 114 } |
115 | 115 |
116 public NSArray searchScopes () | 116 public NSArray searchScopes () |
117 { | 117 { |
118 objc.id result = OS.objc_msgSend(this.id, OS.sel_searchScopes); | 118 objc.id result = OS.objc_msgSend(this.id_, OS.sel_searchScopes); |
119 return result !is null ? new NSArray(result) : null; | 119 return result !is null ? new NSArray(result) : null; |
120 } | 120 } |
121 | 121 |
122 public void setDelegate (id delegatee) | 122 public void setDelegate (id delegatee) |
123 { | 123 { |
124 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id : null); | 124 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id_ : null); |
125 } | 125 } |
126 | 126 |
127 public void setGroupingAttributes (NSArray attrs) | 127 public void setGroupingAttributes (NSArray attrs) |
128 { | 128 { |
129 OS.objc_msgSend(this.id, OS.sel_setGroupingAttributes_1, attrs !is null ? attrs.id : null); | 129 OS.objc_msgSend(this.id_, OS.sel_setGroupingAttributes_1, attrs !is null ? attrs.id_ : null); |
130 } | 130 } |
131 | 131 |
132 public void setNotificationBatchingInterval (NSTimeInterval ti) | 132 public void setNotificationBatchingInterval (NSTimeInterval ti) |
133 { | 133 { |
134 OS.objc_msgSend(this.id, OS.sel_setNotificationBatchingInterval_1, ti); | 134 OS.objc_msgSend(this.id_, OS.sel_setNotificationBatchingInterval_1, ti); |
135 } | 135 } |
136 | 136 |
137 public void setPredicate (NSPredicate predicate) | 137 public void setPredicate (NSPredicate predicate) |
138 { | 138 { |
139 OS.objc_msgSend(this.id, OS.sel_setPredicate_1, predicate !is null ? predicate.id : null); | 139 OS.objc_msgSend(this.id_, OS.sel_setPredicate_1, predicate !is null ? predicate.id_ : null); |
140 } | 140 } |
141 | 141 |
142 public void setSearchScopes (NSArray scopes) | 142 public void setSearchScopes (NSArray scopes) |
143 { | 143 { |
144 OS.objc_msgSend(this.id, OS.sel_setSearchScopes_1, scopes !is null ? scopes.id : null); | 144 OS.objc_msgSend(this.id_, OS.sel_setSearchScopes_1, scopes !is null ? scopes.id_ : null); |
145 } | 145 } |
146 | 146 |
147 public void setSortDescriptors (NSArray descriptors) | 147 public void setSortDescriptors (NSArray descriptors) |
148 { | 148 { |
149 OS.objc_msgSend(this.id, OS.sel_setSortDescriptors_1, descriptors !is null ? descriptors.id : null); | 149 OS.objc_msgSend(this.id_, OS.sel_setSortDescriptors_1, descriptors !is null ? descriptors.id_ : null); |
150 } | 150 } |
151 | 151 |
152 public void setValueListAttributes (NSArray attrs) | 152 public void setValueListAttributes (NSArray attrs) |
153 { | 153 { |
154 OS.objc_msgSend(this.id, OS.sel_setValueListAttributes_1, attrs !is null ? attrs.id : null); | 154 OS.objc_msgSend(this.id_, OS.sel_setValueListAttributes_1, attrs !is null ? attrs.id_ : null); |
155 } | 155 } |
156 | 156 |
157 public NSArray sortDescriptors () | 157 public NSArray sortDescriptors () |
158 { | 158 { |
159 objc.id result = OS.objc_msgSend(this.id, OS.sel_sortDescriptors); | 159 objc.id result = OS.objc_msgSend(this.id_, OS.sel_sortDescriptors); |
160 return result !is null ? new NSArray(result) : null; | 160 return result !is null ? new NSArray(result) : null; |
161 } | 161 } |
162 | 162 |
163 public bool startQuery () | 163 public bool startQuery () |
164 { | 164 { |
165 return OS.objc_msgSend(this.id, OS.sel_startQuery) !is null; | 165 return OS.objc_msgSend(this.id_, OS.sel_startQuery) !is null; |
166 } | 166 } |
167 | 167 |
168 public void stopQuery () | 168 public void stopQuery () |
169 { | 169 { |
170 OS.objc_msgSend(this.id, OS.sel_stopQuery); | 170 OS.objc_msgSend(this.id_, OS.sel_stopQuery); |
171 } | 171 } |
172 | 172 |
173 public NSArray valueListAttributes () | 173 public NSArray valueListAttributes () |
174 { | 174 { |
175 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueListAttributes); | 175 objc.id result = OS.objc_msgSend(this.id_, OS.sel_valueListAttributes); |
176 return result !is null ? new NSArray(result) : null; | 176 return result !is null ? new NSArray(result) : null; |
177 } | 177 } |
178 | 178 |
179 public NSDictionary valueLists () | 179 public NSDictionary valueLists () |
180 { | 180 { |
181 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueLists); | 181 objc.id result = OS.objc_msgSend(this.id_, OS.sel_valueLists); |
182 return result !is null ? new NSDictionary(result) : null; | 182 return result !is null ? new NSDictionary(result) : null; |
183 } | 183 } |
184 | 184 |
185 public id valueOfAttribute (NSString attrName, NSUInteger idx) | 185 public id valueOfAttribute (NSString attrName, NSUInteger idx) |
186 { | 186 { |
187 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueOfAttribute_1forResultAtIndex_1, attrName !is null ? attrName.id : null, idx); | 187 objc.id result = OS.objc_msgSend(this.id_, OS.sel_valueOfAttribute_1forResultAtIndex_1, attrName !is null ? attrName.id_ : null, idx); |
188 return result !is null ? new id(result) : null; | 188 return result !is null ? new id(result) : null; |
189 } | 189 } |
190 | 190 |
191 } | 191 } |