comparison dwt/internal/cocoa/NSBrowser.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
43 super(id); 43 super(id);
44 } 44 }
45 45
46 public bool acceptsArrowKeys () 46 public bool acceptsArrowKeys ()
47 { 47 {
48 return OS.objc_msgSend(this.id, OS.sel_acceptsArrowKeys) !is null; 48 return OS.objc_msgSend(this.id_, OS.sel_acceptsArrowKeys) !is null;
49 } 49 }
50 50
51 public void addColumn () 51 public void addColumn ()
52 { 52 {
53 OS.objc_msgSend(this.id, OS.sel_addColumn); 53 OS.objc_msgSend(this.id_, OS.sel_addColumn);
54 } 54 }
55 55
56 public bool allowsBranchSelection () 56 public bool allowsBranchSelection ()
57 { 57 {
58 return OS.objc_msgSend(this.id, OS.sel_allowsBranchSelection) !is null; 58 return OS.objc_msgSend(this.id_, OS.sel_allowsBranchSelection) !is null;
59 } 59 }
60 60
61 public bool allowsEmptySelection () 61 public bool allowsEmptySelection ()
62 { 62 {
63 return OS.objc_msgSend(this.id, OS.sel_allowsEmptySelection) !is null; 63 return OS.objc_msgSend(this.id_, OS.sel_allowsEmptySelection) !is null;
64 } 64 }
65 65
66 public bool allowsMultipleSelection () 66 public bool allowsMultipleSelection ()
67 { 67 {
68 return OS.objc_msgSend(this.id, OS.sel_allowsMultipleSelection) !is null; 68 return OS.objc_msgSend(this.id_, OS.sel_allowsMultipleSelection) !is null;
69 } 69 }
70 70
71 public bool allowsTypeSelect () 71 public bool allowsTypeSelect ()
72 { 72 {
73 return OS.objc_msgSend(this.id, OS.sel_allowsTypeSelect) !is null; 73 return OS.objc_msgSend(this.id_, OS.sel_allowsTypeSelect) !is null;
74 } 74 }
75 75
76 public NSColor backgroundColor () 76 public NSColor backgroundColor ()
77 { 77 {
78 objc.id result = OS.objc_msgSend(this.id, OS.sel_backgroundColor); 78 objc.id result = OS.objc_msgSend(this.id_, OS.sel_backgroundColor);
79 return result !is null ? new NSColor(result) : null; 79 return result !is null ? new NSColor(result) : null;
80 } 80 }
81 81
82 public bool canDragRowsWithIndexes (NSIndexSet rowIndexes, NSInteger column, NSEvent event) 82 public bool canDragRowsWithIndexes (NSIndexSet rowIndexes, NSInteger column, NSEvent event)
83 { 83 {
84 return OS.objc_msgSend(this.id, OS.sel_canDragRowsWithIndexes_1inColumn_1withEvent_1, rowIndexes !is null ? rowIndexes.id : null, column, 84 return OS.objc_msgSend(this.id_, OS.sel_canDragRowsWithIndexes_1inColumn_1withEvent_1, rowIndexes !is null ? rowIndexes.id_ : null, column,
85 event !is null ? event.id : null) !is null; 85 event !is null ? event.id_ : null) !is null;
86 } 86 }
87 87
88 public static objc.Class cellClass () 88 public static objc.Class cellClass ()
89 { 89 {
90 return OS.objc_msgSend(OS.class_NSBrowser, OS.sel_cellClass); 90 return cast(objc.Class) OS.objc_msgSend(OS.class_NSBrowser, OS.sel_cellClass);
91 } 91 }
92 92
93 public id cellPrototype () 93 public id cellPrototype ()
94 { 94 {
95 objc.id result = OS.objc_msgSend(this.id, OS.sel_cellPrototype); 95 objc.id result = OS.objc_msgSend(this.id_, OS.sel_cellPrototype);
96 return result !is null ? new id(result) : null; 96 return result !is null ? new id(result) : null;
97 } 97 }
98 98
99 public CGFloat columnContentWidthForColumnWidth (CGFloat columnWidth) 99 public CGFloat columnContentWidthForColumnWidth (CGFloat columnWidth)
100 { 100 {
101 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_columnContentWidthForColumnWidth_1, columnWidth); 101 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_columnContentWidthForColumnWidth_1, columnWidth);
102 } 102 }
103 103
104 public NSInteger columnOfMatrix (NSMatrix matrix) 104 public NSInteger columnOfMatrix (NSMatrix matrix)
105 { 105 {
106 return OS.objc_msgSend(this.id, OS.sel_columnOfMatrix_1, matrix !is null ? matrix.id : null); 106 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_columnOfMatrix_1, matrix !is null ? matrix.id_ : null);
107 } 107 }
108 108
109 public objc.id columnResizingType () 109 public objc.id columnResizingType ()
110 { 110 {
111 return OS.objc_msgSend(this.id, OS.sel_columnResizingType); 111 return OS.objc_msgSend(this.id_, OS.sel_columnResizingType);
112 } 112 }
113 113
114 public CGFloat columnWidthForColumnContentWidth (CGFloat columnContentWidth) 114 public CGFloat columnWidthForColumnContentWidth (CGFloat columnContentWidth)
115 { 115 {
116 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_columnWidthForColumnContentWidth_1, columnContentWidth); 116 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_columnWidthForColumnContentWidth_1, columnContentWidth);
117 } 117 }
118 118
119 public NSString columnsAutosaveName () 119 public NSString columnsAutosaveName ()
120 { 120 {
121 objc.id result = OS.objc_msgSend(this.id, OS.sel_columnsAutosaveName); 121 objc.id result = OS.objc_msgSend(this.id_, OS.sel_columnsAutosaveName);
122 return result !is null ? new NSString(result) : null; 122 return result !is null ? new NSString(result) : null;
123 } 123 }
124 124
125 public id delegatee () 125 public id delegatee ()
126 { 126 {
127 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); 127 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate);
128 return result !is null ? new id(result) : null; 128 return result !is null ? new id(result) : null;
129 } 129 }
130 130
131 public void displayAllColumns () 131 public void displayAllColumns ()
132 { 132 {
133 OS.objc_msgSend(this.id, OS.sel_displayAllColumns); 133 OS.objc_msgSend(this.id_, OS.sel_displayAllColumns);
134 } 134 }
135 135
136 public void displayColumn (NSInteger column) 136 public void displayColumn (NSInteger column)
137 { 137 {
138 OS.objc_msgSend(this.id, OS.sel_displayColumn_1, column); 138 OS.objc_msgSend(this.id_, OS.sel_displayColumn_1, column);
139 } 139 }
140 140
141 public void doClick (id sender) 141 public void doClick (id sender)
142 { 142 {
143 OS.objc_msgSend(this.id, OS.sel_doClick_1, sender !is null ? sender.id : null); 143 OS.objc_msgSend(this.id_, OS.sel_doClick_1, sender !is null ? sender.id_ : null);
144 } 144 }
145 145
146 public void doDoubleClick (id sender) 146 public void doDoubleClick (id sender)
147 { 147 {
148 OS.objc_msgSend(this.id, OS.sel_doDoubleClick_1, sender !is null ? sender.id : null); 148 OS.objc_msgSend(this.id_, OS.sel_doDoubleClick_1, sender !is null ? sender.id_ : null);
149 } 149 }
150 150
151 public SEL doubleAction () 151 public objc.SEL doubleAction ()
152 { 152 {
153 return OS.objc_msgSend(this.id, OS.sel_doubleAction); 153 return cast(objc.SEL) OS.objc_msgSend(this.id_, OS.sel_doubleAction);
154 } 154 }
155 155
156 public NSImage draggingImageForRowsWithIndexes (NSIndexSet rowIndexes, NSInteger column, NSEvent event, NSPointPointer dragImageOffset) 156 public NSImage draggingImageForRowsWithIndexes (NSIndexSet rowIndexes, NSInteger column, NSEvent event, NSPointPointer dragImageOffset)
157 { 157 {
158 objc.id result = OS.objc_msgSend(this.id, OS.sel_draggingImageForRowsWithIndexes_1inColumn_1withEvent_1offset_1, 158 objc.id result = OS.objc_msgSend(this.id_, OS.sel_draggingImageForRowsWithIndexes_1inColumn_1withEvent_1offset_1,
159 rowIndexes !is null ? rowIndexes.id : null, column, event !is null ? event.id : null, dragImageOffset); 159 rowIndexes !is null ? rowIndexes.id_ : null, column, event !is null ? event.id_ : null, dragImageOffset);
160 return result !is null ? new NSImage(result) : null; 160 return result !is null ? new NSImage(result) : null;
161 } 161 }
162 162
163 public void drawTitleOfColumn (NSInteger column, NSRect aRect) 163 public void drawTitleOfColumn (NSInteger column, NSRect aRect)
164 { 164 {
165 OS.objc_msgSend(this.id, OS.sel_drawTitleOfColumn_1inRect_1, column, aRect); 165 OS.objc_msgSend(this.id_, OS.sel_drawTitleOfColumn_1inRect_1, column, aRect);
166 } 166 }
167 167
168 public NSInteger firstVisibleColumn () 168 public NSInteger firstVisibleColumn ()
169 { 169 {
170 return OS.objc_msgSend(this.id, OS.sel_firstVisibleColumn); 170 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_firstVisibleColumn);
171 } 171 }
172 172
173 public NSRect frameOfColumn (NSInteger column) 173 public NSRect frameOfColumn (NSInteger column)
174 { 174 {
175 NSRect result; 175 NSRect result;
176 OS.objc_msgSend_stret(result, this.id, OS.sel_frameOfColumn_1, column); 176 OS.objc_msgSend_stret(&result, this.id_, OS.sel_frameOfColumn_1, column);
177 return result; 177 return result;
178 } 178 }
179 179
180 public NSRect frameOfInsideOfColumn (NSInteger column) 180 public NSRect frameOfInsideOfColumn (NSInteger column)
181 { 181 {
182 NSRect result; 182 NSRect result;
183 OS.objc_msgSend_stret(result, this.id, OS.sel_frameOfInsideOfColumn_1, column); 183 OS.objc_msgSend_stret(&result, this.id_, OS.sel_frameOfInsideOfColumn_1, column);
184 return result; 184 return result;
185 } 185 }
186 186
187 public bool hasHorizontalScroller () 187 public bool hasHorizontalScroller ()
188 { 188 {
189 return OS.objc_msgSend(this.id, OS.sel_hasHorizontalScroller) !is null; 189 return OS.objc_msgSend(this.id_, OS.sel_hasHorizontalScroller) !is null;
190 } 190 }
191 191
192 public bool isLoaded () 192 public bool isLoaded ()
193 { 193 {
194 return OS.objc_msgSend(this.id, OS.sel_isLoaded) !is null; 194 return OS.objc_msgSend(this.id_, OS.sel_isLoaded) !is null;
195 } 195 }
196 196
197 public bool isTitled () 197 public bool isTitled ()
198 { 198 {
199 return OS.objc_msgSend(this.id, OS.sel_isTitled) !is null; 199 return OS.objc_msgSend(this.id_, OS.sel_isTitled) !is null;
200 } 200 }
201 201
202 public NSInteger lastColumn () 202 public NSInteger lastColumn ()
203 { 203 {
204 return OS.objc_msgSend(this.id, OS.sel_lastColumn); 204 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_lastColumn);
205 } 205 }
206 206
207 public NSInteger lastVisibleColumn () 207 public NSInteger lastVisibleColumn ()
208 { 208 {
209 return OS.objc_msgSend(this.id, OS.sel_lastVisibleColumn); 209 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_lastVisibleColumn);
210 } 210 }
211 211
212 public void loadColumnZero () 212 public void loadColumnZero ()
213 { 213 {
214 OS.objc_msgSend(this.id, OS.sel_loadColumnZero); 214 OS.objc_msgSend(this.id_, OS.sel_loadColumnZero);
215 } 215 }
216 216
217 public id loadedCellAtRow (NSInteger row, NSInteger col) 217 public id loadedCellAtRow (NSInteger row, NSInteger col)
218 { 218 {
219 objc.id result = OS.objc_msgSend(this.id, OS.sel_loadedCellAtRow_1column_1, row, col); 219 objc.id result = OS.objc_msgSend(this.id_, OS.sel_loadedCellAtRow_1column_1, row, col);
220 return result !is null ? new id(result) : null; 220 return result !is null ? new id(result) : null;
221 } 221 }
222 222
223 public objc.Class matrixClass () 223 public objc.Class matrixClass ()
224 { 224 {
225 return OS.objc_msgSend(this.id, OS.sel_matrixClass); 225 return cast(objc.Class) OS.objc_msgSend(this.id_, OS.sel_matrixClass);
226 } 226 }
227 227
228 public NSMatrix matrixInColumn (NSInteger column) 228 public NSMatrix matrixInColumn (NSInteger column)
229 { 229 {
230 objc.id result = OS.objc_msgSend(this.id, OS.sel_matrixInColumn_1, column); 230 objc.id result = OS.objc_msgSend(this.id_, OS.sel_matrixInColumn_1, column);
231 return result !is null ? new NSMatrix(result) : null; 231 return result !is null ? new NSMatrix(result) : null;
232 } 232 }
233 233
234 public NSInteger maxVisibleColumns () 234 public NSInteger maxVisibleColumns ()
235 { 235 {
236 return OS.objc_msgSend(this.id, OS.sel_maxVisibleColumns); 236 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_maxVisibleColumns);
237 } 237 }
238 238
239 public CGFloat minColumnWidth () 239 public CGFloat minColumnWidth ()
240 { 240 {
241 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_minColumnWidth); 241 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_minColumnWidth);
242 } 242 }
243 243
244 public NSInteger numberOfVisibleColumns () 244 public NSInteger numberOfVisibleColumns ()
245 { 245 {
246 return OS.objc_msgSend(this.id, OS.sel_numberOfVisibleColumns); 246 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_numberOfVisibleColumns);
247 } 247 }
248 248
249 public NSString path () 249 public NSString path ()
250 { 250 {
251 objc.id result = OS.objc_msgSend(this.id, OS.sel_path); 251 objc.id result = OS.objc_msgSend(this.id_, OS.sel_path);
252 return result !is null ? new NSString(result) : null; 252 return result !is null ? new NSString(result) : null;
253 } 253 }
254 254
255 public NSString pathSeparator () 255 public NSString pathSeparator ()
256 { 256 {
257 objc.id result = OS.objc_msgSend(this.id, OS.sel_pathSeparator); 257 objc.id result = OS.objc_msgSend(this.id_, OS.sel_pathSeparator);
258 return result !is null ? new NSString(result) : null; 258 return result !is null ? new NSString(result) : null;
259 } 259 }
260 260
261 public NSString pathToColumn (NSInteger column) 261 public NSString pathToColumn (NSInteger column)
262 { 262 {
263 objc.id result = OS.objc_msgSend(this.id, OS.sel_pathToColumn_1, column); 263 objc.id result = OS.objc_msgSend(this.id_, OS.sel_pathToColumn_1, column);
264 return result !is null ? new NSString(result) : null; 264 return result !is null ? new NSString(result) : null;
265 } 265 }
266 266
267 public bool prefersAllColumnUserResizing () 267 public bool prefersAllColumnUserResizing ()
268 { 268 {
269 return OS.objc_msgSend(this.id, OS.sel_prefersAllColumnUserResizing) !is null; 269 return OS.objc_msgSend(this.id_, OS.sel_prefersAllColumnUserResizing) !is null;
270 } 270 }
271 271
272 public void reloadColumn (NSInteger column) 272 public void reloadColumn (NSInteger column)
273 { 273 {
274 OS.objc_msgSend(this.id, OS.sel_reloadColumn_1, column); 274 OS.objc_msgSend(this.id_, OS.sel_reloadColumn_1, column);
275 } 275 }
276 276
277 public static void removeSavedColumnsWithAutosaveName (NSString name) 277 public static void removeSavedColumnsWithAutosaveName (NSString name)
278 { 278 {
279 OS.objc_msgSend(OS.class_NSBrowser, OS.sel_removeSavedColumnsWithAutosaveName_1, name !is null ? name.id : null); 279 OS.objc_msgSend(OS.class_NSBrowser, OS.sel_removeSavedColumnsWithAutosaveName_1, name !is null ? name.id_ : null);
280 } 280 }
281 281
282 public bool reusesColumns () 282 public bool reusesColumns ()
283 { 283 {
284 return OS.objc_msgSend(this.id, OS.sel_reusesColumns) !is null; 284 return OS.objc_msgSend(this.id_, OS.sel_reusesColumns) !is null;
285 } 285 }
286 286
287 public void scrollColumnToVisible (NSInteger column) 287 public void scrollColumnToVisible (NSInteger column)
288 { 288 {
289 OS.objc_msgSend(this.id, OS.sel_scrollColumnToVisible_1, column); 289 OS.objc_msgSend(this.id_, OS.sel_scrollColumnToVisible_1, column);
290 } 290 }
291 291
292 public void scrollColumnsLeftBy (NSInteger shiftAmount) 292 public void scrollColumnsLeftBy (NSInteger shiftAmount)
293 { 293 {
294 OS.objc_msgSend(this.id, OS.sel_scrollColumnsLeftBy_1, shiftAmount); 294 OS.objc_msgSend(this.id_, OS.sel_scrollColumnsLeftBy_1, shiftAmount);
295 } 295 }
296 296
297 public void scrollColumnsRightBy (NSInteger shiftAmount) 297 public void scrollColumnsRightBy (NSInteger shiftAmount)
298 { 298 {
299 OS.objc_msgSend(this.id, OS.sel_scrollColumnsRightBy_1, shiftAmount); 299 OS.objc_msgSend(this.id_, OS.sel_scrollColumnsRightBy_1, shiftAmount);
300 } 300 }
301 301
302 public void scrollViaScroller (NSScroller sender) 302 public void scrollViaScroller (NSScroller sender)
303 { 303 {
304 OS.objc_msgSend(this.id, OS.sel_scrollViaScroller_1, sender !is null ? sender.id : null); 304 OS.objc_msgSend(this.id_, OS.sel_scrollViaScroller_1, sender !is null ? sender.id_ : null);
305 } 305 }
306 306
307 public void selectAll (id sender) 307 public void selectAll (id sender)
308 { 308 {
309 OS.objc_msgSend(this.id, OS.sel_selectAll_1, sender !is null ? sender.id : null); 309 OS.objc_msgSend(this.id_, OS.sel_selectAll_1, sender !is null ? sender.id_ : null);
310 } 310 }
311 311
312 public void selectRow (NSInteger row, NSInteger column) 312 public void selectRow (NSInteger row, NSInteger column)
313 { 313 {
314 OS.objc_msgSend(this.id, OS.sel_selectRow_1inColumn_1, row, column); 314 OS.objc_msgSend(this.id_, OS.sel_selectRow_1inColumn_1, row, column);
315 } 315 }
316 316
317 public void selectRowIndexes (NSIndexSet indexes, NSInteger column) 317 public void selectRowIndexes (NSIndexSet indexes, NSInteger column)
318 { 318 {
319 OS.objc_msgSend(this.id, OS.sel_selectRowIndexes_1inColumn_1, indexes !is null ? indexes.id : null, column); 319 OS.objc_msgSend(this.id_, OS.sel_selectRowIndexes_1inColumn_1, indexes !is null ? indexes.id_ : null, column);
320 } 320 }
321 321
322 public id selectedCell () 322 public id selectedCell ()
323 { 323 {
324 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedCell); 324 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedCell);
325 return result !is null ? new id(result) : null; 325 return result !is null ? new id(result) : null;
326 } 326 }
327 327
328 public id selectedCellInColumn (NSInteger column) 328 public id selectedCellInColumn (NSInteger column)
329 { 329 {
330 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedCellInColumn_1, column); 330 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedCellInColumn_1, column);
331 return result !is null ? new id(result) : null; 331 return result !is null ? new id(result) : null;
332 } 332 }
333 333
334 public NSArray selectedCells () 334 public NSArray selectedCells ()
335 { 335 {
336 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedCells); 336 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedCells);
337 return result !is null ? new NSArray(result) : null; 337 return result !is null ? new NSArray(result) : null;
338 } 338 }
339 339
340 public NSInteger selectedColumn () 340 public NSInteger selectedColumn ()
341 { 341 {
342 return OS.objc_msgSend(this.id, OS.sel_selectedColumn); 342 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_selectedColumn);
343 } 343 }
344 344
345 public NSInteger selectedRowInColumn (NSInteger column) 345 public NSInteger selectedRowInColumn (NSInteger column)
346 { 346 {
347 return OS.objc_msgSend(this.id, OS.sel_selectedRowInColumn_1, column); 347 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_selectedRowInColumn_1, column);
348 } 348 }
349 349
350 public NSIndexSet selectedRowIndexesInColumn (NSInteger column) 350 public NSIndexSet selectedRowIndexesInColumn (NSInteger column)
351 { 351 {
352 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedRowIndexesInColumn_1, column); 352 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedRowIndexesInColumn_1, column);
353 return result !is null ? new NSIndexSet(result) : null; 353 return result !is null ? new NSIndexSet(result) : null;
354 } 354 }
355 355
356 public bool sendAction () 356 public bool sendAction ()
357 { 357 {
358 return OS.objc_msgSend(this.id, OS.sel_sendAction) !is null; 358 return OS.objc_msgSend(this.id_, OS.sel_sendAction) !is null;
359 } 359 }
360 360
361 public bool sendsActionOnArrowKeys () 361 public bool sendsActionOnArrowKeys ()
362 { 362 {
363 return OS.objc_msgSend(this.id, OS.sel_sendsActionOnArrowKeys) !is null; 363 return OS.objc_msgSend(this.id_, OS.sel_sendsActionOnArrowKeys) !is null;
364 } 364 }
365 365
366 public bool separatesColumns () 366 public bool separatesColumns ()
367 { 367 {
368 return OS.objc_msgSend(this.id, OS.sel_separatesColumns) !is null; 368 return OS.objc_msgSend(this.id_, OS.sel_separatesColumns) !is null;
369 } 369 }
370 370
371 public void setAcceptsArrowKeys (bool flag) 371 public void setAcceptsArrowKeys (bool flag)
372 { 372 {
373 OS.objc_msgSend(this.id, OS.sel_setAcceptsArrowKeys_1, flag); 373 OS.objc_msgSend(this.id_, OS.sel_setAcceptsArrowKeys_1, flag);
374 } 374 }
375 375
376 public void setAllowsBranchSelection (bool flag) 376 public void setAllowsBranchSelection (bool flag)
377 { 377 {
378 OS.objc_msgSend(this.id, OS.sel_setAllowsBranchSelection_1, flag); 378 OS.objc_msgSend(this.id_, OS.sel_setAllowsBranchSelection_1, flag);
379 } 379 }
380 380
381 public void setAllowsEmptySelection (bool flag) 381 public void setAllowsEmptySelection (bool flag)
382 { 382 {
383 OS.objc_msgSend(this.id, OS.sel_setAllowsEmptySelection_1, flag); 383 OS.objc_msgSend(this.id_, OS.sel_setAllowsEmptySelection_1, flag);
384 } 384 }
385 385
386 public void setAllowsMultipleSelection (bool flag) 386 public void setAllowsMultipleSelection (bool flag)
387 { 387 {
388 OS.objc_msgSend(this.id, OS.sel_setAllowsMultipleSelection_1, flag); 388 OS.objc_msgSend(this.id_, OS.sel_setAllowsMultipleSelection_1, flag);
389 } 389 }
390 390
391 public void setAllowsTypeSelect (bool value) 391 public void setAllowsTypeSelect (bool value)
392 { 392 {
393 OS.objc_msgSend(this.id, OS.sel_setAllowsTypeSelect_1, value); 393 OS.objc_msgSend(this.id_, OS.sel_setAllowsTypeSelect_1, value);
394 } 394 }
395 395
396 public void setBackgroundColor (NSColor color) 396 public void setBackgroundColor (NSColor color)
397 { 397 {
398 OS.objc_msgSend(this.id, OS.sel_setBackgroundColor_1, color !is null ? color.id : null); 398 OS.objc_msgSend(this.id_, OS.sel_setBackgroundColor_1, color !is null ? color.id_ : null);
399 } 399 }
400 400
401 //public void setCellClass(Class factoryId) { 401 //public void setCellClass(Class factoryId) {
402 // OS.objc_msgSend(this.id, OS.sel_setCellClass_1, factoryId); 402 // OS.objc_msgSend(this.id_, OS.sel_setCellClass_1, factoryId);
403 //} 403 //}
404 404
405 public void setCellPrototype (NSCell aCell) 405 public void setCellPrototype (NSCell aCell)
406 { 406 {
407 OS.objc_msgSend(this.id, OS.sel_setCellPrototype_1, aCell !is null ? aCell.id : null); 407 OS.objc_msgSend(this.id_, OS.sel_setCellPrototype_1, aCell !is null ? aCell.id_ : null);
408 } 408 }
409 409
410 public void setColumnResizingType (objc.id columnResizingType) 410 public void setColumnResizingType (objc.id columnResizingType)
411 { 411 {
412 OS.objc_msgSend(this.id, OS.sel_setColumnResizingType_1, columnResizingType); 412 OS.objc_msgSend(this.id_, OS.sel_setColumnResizingType_1, columnResizingType);
413 } 413 }
414 414
415 public void setColumnsAutosaveName (NSString name) 415 public void setColumnsAutosaveName (NSString name)
416 { 416 {
417 OS.objc_msgSend(this.id, OS.sel_setColumnsAutosaveName_1, name !is null ? name.id : null); 417 OS.objc_msgSend(this.id_, OS.sel_setColumnsAutosaveName_1, name !is null ? name.id_ : null);
418 } 418 }
419 419
420 public void setDelegate (id anObject) 420 public void setDelegate (id anObject)
421 { 421 {
422 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, anObject !is null ? anObject.id : null); 422 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, anObject !is null ? anObject.id_ : null);
423 } 423 }
424 424
425 public void setDoubleAction (objc.SEL aSelector) 425 public void setDoubleAction (objc.SEL aSelector)
426 { 426 {
427 OS.objc_msgSend(this.id, OS.sel_setDoubleAction_1, aSelector); 427 OS.objc_msgSend(this.id_, OS.sel_setDoubleAction_1, aSelector);
428 } 428 }
429 429
430 public void setDraggingSourceOperationMask (objc.id mask, bool isLocal) 430 public void setDraggingSourceOperationMask (objc.id mask, bool isLocal)
431 { 431 {
432 OS.objc_msgSend(this.id, OS.sel_setDraggingSourceOperationMask_1forLocal_1, mask, isLocal); 432 OS.objc_msgSend(this.id_, OS.sel_setDraggingSourceOperationMask_1forLocal_1, mask, isLocal);
433 } 433 }
434 434
435 public void setHasHorizontalScroller (bool flag) 435 public void setHasHorizontalScroller (bool flag)
436 { 436 {
437 OS.objc_msgSend(this.id, OS.sel_setHasHorizontalScroller_1, flag); 437 OS.objc_msgSend(this.id_, OS.sel_setHasHorizontalScroller_1, flag);
438 } 438 }
439 439
440 public void setLastColumn (NSInteger column) 440 public void setLastColumn (NSInteger column)
441 { 441 {
442 OS.objc_msgSend(this.id, OS.sel_setLastColumn_1, column); 442 OS.objc_msgSend(this.id_, OS.sel_setLastColumn_1, column);
443 } 443 }
444 444
445 public void setMatrixClass (Class factoryId) 445 public void setMatrixClass (objc.Class factoryId)
446 { 446 {
447 OS.objc_msgSend(this.id, OS.sel_setMatrixClass_1, factoryId); 447 OS.objc_msgSend(this.id_, OS.sel_setMatrixClass_1, factoryId);
448 } 448 }
449 449
450 public void setMaxVisibleColumns (NSInteger columnCount) 450 public void setMaxVisibleColumns (NSInteger columnCount)
451 { 451 {
452 OS.objc_msgSend(this.id, OS.sel_setMaxVisibleColumns_1, columnCount); 452 OS.objc_msgSend(this.id_, OS.sel_setMaxVisibleColumns_1, columnCount);
453 } 453 }
454 454
455 public void setMinColumnWidth (CGFloat columnWidth) 455 public void setMinColumnWidth (CGFloat columnWidth)
456 { 456 {
457 OS.objc_msgSend(this.id, OS.sel_setMinColumnWidth_1, columnWidth); 457 OS.objc_msgSend(this.id_, OS.sel_setMinColumnWidth_1, columnWidth);
458 } 458 }
459 459
460 public bool setPath (NSString path) 460 public bool setPath (NSString path)
461 { 461 {
462 return OS.objc_msgSend(this.id, OS.sel_setPath_1, path !is null ? path.id : null) !is null; 462 return OS.objc_msgSend(this.id_, OS.sel_setPath_1, path !is null ? path.id_ : null) !is null;
463 } 463 }
464 464
465 public void setPathSeparator (NSString newString) 465 public void setPathSeparator (NSString newString)
466 { 466 {
467 OS.objc_msgSend(this.id, OS.sel_setPathSeparator_1, newString !is null ? newString.id : null); 467 OS.objc_msgSend(this.id_, OS.sel_setPathSeparator_1, newString !is null ? newString.id_ : null);
468 } 468 }
469 469
470 public void setPrefersAllColumnUserResizing (bool prefersAllColumnResizing) 470 public void setPrefersAllColumnUserResizing (bool prefersAllColumnResizing)
471 { 471 {
472 OS.objc_msgSend(this.id, OS.sel_setPrefersAllColumnUserResizing_1, prefersAllColumnResizing); 472 OS.objc_msgSend(this.id_, OS.sel_setPrefersAllColumnUserResizing_1, prefersAllColumnResizing);
473 } 473 }
474 474
475 public void setReusesColumns (bool flag) 475 public void setReusesColumns (bool flag)
476 { 476 {
477 OS.objc_msgSend(this.id, OS.sel_setReusesColumns_1, flag); 477 OS.objc_msgSend(this.id_, OS.sel_setReusesColumns_1, flag);
478 } 478 }
479 479
480 public void setSendsActionOnArrowKeys (bool flag) 480 public void setSendsActionOnArrowKeys (bool flag)
481 { 481 {
482 OS.objc_msgSend(this.id, OS.sel_setSendsActionOnArrowKeys_1, flag); 482 OS.objc_msgSend(this.id_, OS.sel_setSendsActionOnArrowKeys_1, flag);
483 } 483 }
484 484
485 public void setSeparatesColumns (bool flag) 485 public void setSeparatesColumns (bool flag)
486 { 486 {
487 OS.objc_msgSend(this.id, OS.sel_setSeparatesColumns_1, flag); 487 OS.objc_msgSend(this.id_, OS.sel_setSeparatesColumns_1, flag);
488 } 488 }
489 489
490 public void setTakesTitleFromPreviousColumn (bool flag) 490 public void setTakesTitleFromPreviousColumn (bool flag)
491 { 491 {
492 OS.objc_msgSend(this.id, OS.sel_setTakesTitleFromPreviousColumn_1, flag); 492 OS.objc_msgSend(this.id_, OS.sel_setTakesTitleFromPreviousColumn_1, flag);
493 } 493 }
494 494
495 public void setTitle (NSString aString, NSInteger column) 495 public void setTitle (NSString aString, NSInteger column)
496 { 496 {
497 OS.objc_msgSend(this.id, OS.sel_setTitle_1ofColumn_1, aString !is null ? aString.id : null, column); 497 OS.objc_msgSend(this.id_, OS.sel_setTitle_1ofColumn_1, aString !is null ? aString.id_ : null, column);
498 } 498 }
499 499
500 public void setTitled (bool flag) 500 public void setTitled (bool flag)
501 { 501 {
502 OS.objc_msgSend(this.id, OS.sel_setTitled_1, flag); 502 OS.objc_msgSend(this.id_, OS.sel_setTitled_1, flag);
503 } 503 }
504 504
505 public void setWidth (CGFloat columnWidth, NSInteger columnIndex) 505 public void setWidth (CGFloat columnWidth, NSInteger columnIndex)
506 { 506 {
507 OS.objc_msgSend(this.id, OS.sel_setWidth_1ofColumn_1, columnWidth, columnIndex); 507 OS.objc_msgSend(this.id_, OS.sel_setWidth_1ofColumn_1, columnWidth, columnIndex);
508 } 508 }
509 509
510 public bool takesTitleFromPreviousColumn () 510 public bool takesTitleFromPreviousColumn ()
511 { 511 {
512 return OS.objc_msgSend(this.id, OS.sel_takesTitleFromPreviousColumn) !is null; 512 return OS.objc_msgSend(this.id_, OS.sel_takesTitleFromPreviousColumn) !is null;
513 } 513 }
514 514
515 public void tile () 515 public void tile ()
516 { 516 {
517 OS.objc_msgSend(this.id, OS.sel_tile); 517 OS.objc_msgSend(this.id_, OS.sel_tile);
518 } 518 }
519 519
520 public NSRect titleFrameOfColumn (NSInteger column) 520 public NSRect titleFrameOfColumn (NSInteger column)
521 { 521 {
522 NSRect result; 522 NSRect result;
523 OS.objc_msgSend_stret(result, this.id, OS.sel_titleFrameOfColumn_1, column); 523 OS.objc_msgSend_stret(&result, this.id_, OS.sel_titleFrameOfColumn_1, column);
524 return result; 524 return result;
525 } 525 }
526 526
527 public CGFloat titleHeight () 527 public CGFloat titleHeight ()
528 { 528 {
529 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_titleHeight); 529 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_titleHeight);
530 } 530 }
531 531
532 public NSString titleOfColumn (NSInteger column) 532 public NSString titleOfColumn (NSInteger column)
533 { 533 {
534 objc.id result = OS.objc_msgSend(this.id, OS.sel_titleOfColumn_1, column); 534 objc.id result = OS.objc_msgSend(this.id_, OS.sel_titleOfColumn_1, column);
535 return result !is null ? new NSString(result) : null; 535 return result !is null ? new NSString(result) : null;
536 } 536 }
537 537
538 public void updateScroller () 538 public void updateScroller ()
539 { 539 {
540 OS.objc_msgSend(this.id, OS.sel_updateScroller); 540 OS.objc_msgSend(this.id_, OS.sel_updateScroller);
541 } 541 }
542 542
543 public void validateVisibleColumns () 543 public void validateVisibleColumns ()
544 { 544 {
545 OS.objc_msgSend(this.id, OS.sel_validateVisibleColumns); 545 OS.objc_msgSend(this.id_, OS.sel_validateVisibleColumns);
546 } 546 }
547 547
548 public CGFloat widthOfColumn (NSInteger column) 548 public CGFloat widthOfColumn (NSInteger column)
549 { 549 {
550 return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_widthOfColumn_1, column); 550 return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_widthOfColumn_1, column);
551 } 551 }
552 } 552 }