This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
/
browser_delegate.go
545 lines (436 loc) · 23.7 KB
/
browser_delegate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
// auto-generated code, do not modify
package appkit
import (
"github.com/hsiafan/cocoa/foundation"
"github.com/hsiafan/cocoa/objc"
)
type BrowserDelegate interface {
ImplementsBrowser_IsColumnValid() bool
// optional
Browser_IsColumnValid(sender Browser, column int) bool
ImplementsBrowser_NumberOfRowsInColumn() bool
// optional
Browser_NumberOfRowsInColumn(sender Browser, column int) int
ImplementsBrowser_NumberOfChildrenOfItem() bool
// optional
Browser_NumberOfChildrenOfItem(browser Browser, item objc.Object) int
ImplementsBrowser_TitleOfColumn() bool
// optional
Browser_TitleOfColumn(sender Browser, column int) string
ImplementsBrowser_ShouldTypeSelectForEvent_WithCurrentSearchString() bool
// optional
Browser_ShouldTypeSelectForEvent_WithCurrentSearchString(browser Browser, event Event, searchString string) bool
ImplementsBrowser_TypeSelectStringForRow_InColumn() bool
// optional
Browser_TypeSelectStringForRow_InColumn(browser Browser, row int, column int) string
ImplementsBrowser_NextTypeSelectMatchFromRow_ToRow_InColumn_ForString() bool
// optional
Browser_NextTypeSelectMatchFromRow_ToRow_InColumn_ForString(browser Browser, startRow int, endRow int, column int, searchString string) int
ImplementsBrowser_SelectCellWithString_InColumn() bool
// optional
Browser_SelectCellWithString_InColumn(sender Browser, title string, column int) bool
ImplementsBrowser_SelectRow_InColumn() bool
// optional
Browser_SelectRow_InColumn(sender Browser, row int, column int) bool
ImplementsBrowser_SelectionIndexesForProposedSelection_InColumn() bool
// optional
Browser_SelectionIndexesForProposedSelection_InColumn(browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IIndexSet
ImplementsBrowser_Child_OfItem() bool
// optional
Browser_Child_OfItem(browser Browser, index int, item objc.Object) objc.IObject
ImplementsBrowser_IsLeafItem() bool
// optional
Browser_IsLeafItem(browser Browser, item objc.Object) bool
ImplementsBrowser_ShouldEditItem() bool
// optional
Browser_ShouldEditItem(browser Browser, item objc.Object) bool
ImplementsBrowser_ObjectValueForItem() bool
// optional
Browser_ObjectValueForItem(browser Browser, item objc.Object) objc.IObject
ImplementsBrowser_SetObjectValue_ForItem() bool
// optional
Browser_SetObjectValue_ForItem(browser Browser, object objc.Object, item objc.Object)
ImplementsRootItemForBrowser() bool
// optional
RootItemForBrowser(browser Browser) objc.IObject
ImplementsBrowser_PreviewViewControllerForLeafItem() bool
// optional
Browser_PreviewViewControllerForLeafItem(browser Browser, item objc.Object) IViewController
ImplementsBrowser_HeaderViewControllerForItem() bool
// optional
Browser_HeaderViewControllerForItem(browser Browser, item objc.Object) IViewController
ImplementsBrowser_CreateRowsForColumn_InMatrix() bool
// optional
Browser_CreateRowsForColumn_InMatrix(sender Browser, column int, matrix Matrix)
ImplementsBrowser_WillDisplayCell_AtRow_Column() bool
// optional
Browser_WillDisplayCell_AtRow_Column(sender Browser, cell objc.Object, row int, column int)
ImplementsBrowser_DidChangeLastColumn_ToColumn() bool
// optional
Browser_DidChangeLastColumn_ToColumn(browser Browser, oldLastColumn int, column int)
ImplementsBrowserWillScroll() bool
// optional
BrowserWillScroll(sender Browser)
ImplementsBrowserDidScroll() bool
// optional
BrowserDidScroll(sender Browser)
ImplementsBrowser_CanDragRowsWithIndexes_InColumn_WithEvent() bool
// optional
Browser_CanDragRowsWithIndexes_InColumn_WithEvent(browser Browser, rowIndexes foundation.IndexSet, column int, event Event) bool
ImplementsBrowser_DraggingImageForRowsWithIndexes_InColumn_WithEvent_Offset() bool
// optional
Browser_DraggingImageForRowsWithIndexes_InColumn_WithEvent_Offset(browser Browser, rowIndexes foundation.IndexSet, column int, event Event, dragImageOffset *foundation.Point) IImage
ImplementsBrowser_ValidateDrop_ProposedRow_Column_DropOperation() bool
// optional
Browser_ValidateDrop_ProposedRow_Column_DropOperation(browser Browser, info objc.Object, row *int, column *int, dropOperation *BrowserDropOperation) DragOperation
ImplementsBrowser_AcceptDrop_AtRow_Column_DropOperation() bool
// optional
Browser_AcceptDrop_AtRow_Column_DropOperation(browser Browser, info objc.Object, row int, column int, dropOperation BrowserDropOperation) bool
ImplementsBrowser_WriteRowsWithIndexes_InColumn_ToPasteboard() bool
// optional
Browser_WriteRowsWithIndexes_InColumn_ToPasteboard(browser Browser, rowIndexes foundation.IndexSet, column int, pasteboard Pasteboard) bool
ImplementsBrowser_NamesOfPromisedFilesDroppedAtDestination_ForDraggedRowsWithIndexes_InColumn() bool
// optional
// deprecated
Browser_NamesOfPromisedFilesDroppedAtDestination_ForDraggedRowsWithIndexes_InColumn(browser Browser, dropDestination foundation.URL, rowIndexes foundation.IndexSet, column int) []string
ImplementsBrowser_ShouldSizeColumn_ForUserResize_ToWidth() bool
// optional
Browser_ShouldSizeColumn_ForUserResize_ToWidth(browser Browser, columnIndex int, forUserResize bool, suggestedWidth float64) float64
ImplementsBrowser_SizeToFitWidthOfColumn() bool
// optional
Browser_SizeToFitWidthOfColumn(browser Browser, columnIndex int) float64
ImplementsBrowserColumnConfigurationDidChange() bool
// optional
BrowserColumnConfigurationDidChange(notification foundation.Notification)
ImplementsBrowser_HeightOfRow_InColumn() bool
// optional
Browser_HeightOfRow_InColumn(browser Browser, row int, columnIndex int) float64
ImplementsBrowser_ShouldShowCellExpansionForRow_Column() bool
// optional
Browser_ShouldShowCellExpansionForRow_Column(browser Browser, row int, column int) bool
}
func WrapBrowserDelegate(v BrowserDelegate) objc.Object {
return objc.WrapAsProtocol("NSBrowserDelegate", v)
}
type BrowserDelegateBase struct {
}
func (p *BrowserDelegateBase) ImplementsBrowser_IsColumnValid() bool {
return false
}
func (p *BrowserDelegateBase) Browser_IsColumnValid(sender Browser, column int) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_NumberOfRowsInColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_NumberOfRowsInColumn(sender Browser, column int) int {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_NumberOfChildrenOfItem() bool {
return false
}
func (p *BrowserDelegateBase) Browser_NumberOfChildrenOfItem(browser Browser, item objc.Object) int {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_TitleOfColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_TitleOfColumn(sender Browser, column int) string {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_ShouldTypeSelectForEvent_WithCurrentSearchString() bool {
return false
}
func (p *BrowserDelegateBase) Browser_ShouldTypeSelectForEvent_WithCurrentSearchString(browser Browser, event Event, searchString string) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_TypeSelectStringForRow_InColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_TypeSelectStringForRow_InColumn(browser Browser, row int, column int) string {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_NextTypeSelectMatchFromRow_ToRow_InColumn_ForString() bool {
return false
}
func (p *BrowserDelegateBase) Browser_NextTypeSelectMatchFromRow_ToRow_InColumn_ForString(browser Browser, startRow int, endRow int, column int, searchString string) int {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_SelectCellWithString_InColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_SelectCellWithString_InColumn(sender Browser, title string, column int) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_SelectRow_InColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_SelectRow_InColumn(sender Browser, row int, column int) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_SelectionIndexesForProposedSelection_InColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_SelectionIndexesForProposedSelection_InColumn(browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IIndexSet {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_Child_OfItem() bool {
return false
}
func (p *BrowserDelegateBase) Browser_Child_OfItem(browser Browser, index int, item objc.Object) objc.IObject {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_IsLeafItem() bool {
return false
}
func (p *BrowserDelegateBase) Browser_IsLeafItem(browser Browser, item objc.Object) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_ShouldEditItem() bool {
return false
}
func (p *BrowserDelegateBase) Browser_ShouldEditItem(browser Browser, item objc.Object) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_ObjectValueForItem() bool {
return false
}
func (p *BrowserDelegateBase) Browser_ObjectValueForItem(browser Browser, item objc.Object) objc.IObject {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_SetObjectValue_ForItem() bool {
return false
}
func (p *BrowserDelegateBase) Browser_SetObjectValue_ForItem(browser Browser, object objc.Object, item objc.Object) {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsRootItemForBrowser() bool {
return false
}
func (p *BrowserDelegateBase) RootItemForBrowser(browser Browser) objc.IObject {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_PreviewViewControllerForLeafItem() bool {
return false
}
func (p *BrowserDelegateBase) Browser_PreviewViewControllerForLeafItem(browser Browser, item objc.Object) IViewController {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_HeaderViewControllerForItem() bool {
return false
}
func (p *BrowserDelegateBase) Browser_HeaderViewControllerForItem(browser Browser, item objc.Object) IViewController {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_CreateRowsForColumn_InMatrix() bool {
return false
}
func (p *BrowserDelegateBase) Browser_CreateRowsForColumn_InMatrix(sender Browser, column int, matrix Matrix) {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_WillDisplayCell_AtRow_Column() bool {
return false
}
func (p *BrowserDelegateBase) Browser_WillDisplayCell_AtRow_Column(sender Browser, cell objc.Object, row int, column int) {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_DidChangeLastColumn_ToColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_DidChangeLastColumn_ToColumn(browser Browser, oldLastColumn int, column int) {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowserWillScroll() bool {
return false
}
func (p *BrowserDelegateBase) BrowserWillScroll(sender Browser) {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowserDidScroll() bool {
return false
}
func (p *BrowserDelegateBase) BrowserDidScroll(sender Browser) {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_CanDragRowsWithIndexes_InColumn_WithEvent() bool {
return false
}
func (p *BrowserDelegateBase) Browser_CanDragRowsWithIndexes_InColumn_WithEvent(browser Browser, rowIndexes foundation.IndexSet, column int, event Event) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_DraggingImageForRowsWithIndexes_InColumn_WithEvent_Offset() bool {
return false
}
func (p *BrowserDelegateBase) Browser_DraggingImageForRowsWithIndexes_InColumn_WithEvent_Offset(browser Browser, rowIndexes foundation.IndexSet, column int, event Event, dragImageOffset *foundation.Point) IImage {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_ValidateDrop_ProposedRow_Column_DropOperation() bool {
return false
}
func (p *BrowserDelegateBase) Browser_ValidateDrop_ProposedRow_Column_DropOperation(browser Browser, info objc.Object, row *int, column *int, dropOperation *BrowserDropOperation) DragOperation {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_AcceptDrop_AtRow_Column_DropOperation() bool {
return false
}
func (p *BrowserDelegateBase) Browser_AcceptDrop_AtRow_Column_DropOperation(browser Browser, info objc.Object, row int, column int, dropOperation BrowserDropOperation) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_WriteRowsWithIndexes_InColumn_ToPasteboard() bool {
return false
}
func (p *BrowserDelegateBase) Browser_WriteRowsWithIndexes_InColumn_ToPasteboard(browser Browser, rowIndexes foundation.IndexSet, column int, pasteboard Pasteboard) bool {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_NamesOfPromisedFilesDroppedAtDestination_ForDraggedRowsWithIndexes_InColumn() bool {
return false
}
// deprecated
func (p *BrowserDelegateBase) Browser_NamesOfPromisedFilesDroppedAtDestination_ForDraggedRowsWithIndexes_InColumn(browser Browser, dropDestination foundation.URL, rowIndexes foundation.IndexSet, column int) []string {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_ShouldSizeColumn_ForUserResize_ToWidth() bool {
return false
}
func (p *BrowserDelegateBase) Browser_ShouldSizeColumn_ForUserResize_ToWidth(browser Browser, columnIndex int, forUserResize bool, suggestedWidth float64) float64 {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_SizeToFitWidthOfColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_SizeToFitWidthOfColumn(browser Browser, columnIndex int) float64 {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowserColumnConfigurationDidChange() bool {
return false
}
func (p *BrowserDelegateBase) BrowserColumnConfigurationDidChange(notification foundation.Notification) {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_HeightOfRow_InColumn() bool {
return false
}
func (p *BrowserDelegateBase) Browser_HeightOfRow_InColumn(browser Browser, row int, columnIndex int) float64 {
panic("unimpemented protocol method")
}
func (p *BrowserDelegateBase) ImplementsBrowser_ShouldShowCellExpansionForRow_Column() bool {
return false
}
func (p *BrowserDelegateBase) Browser_ShouldShowCellExpansionForRow_Column(browser Browser, row int, column int) bool {
panic("unimpemented protocol method")
}
type BrowserDelegateCreator struct {
className string
class objc.Class
}
func NewBrowserDelegateCreator(name string) *BrowserDelegateCreator {
class := objc.AllocateClassPair(objc.GetClass("ProtocolBase"), name, 0)
objc.RegisterClassPair(class)
return &BrowserDelegateCreator{className: name, class: class}
}
func (c *BrowserDelegateCreator) SetBrowser_IsColumnValid(handle func(o objc.ProtocolBase, sender Browser, column int) bool) {
objc.AddMethod(c.class, objc.SEL("browser:isColumnValid:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_NumberOfRowsInColumn(handle func(o objc.ProtocolBase, sender Browser, column int) int) {
objc.AddMethod(c.class, objc.SEL("browser:numberOfRowsInColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_NumberOfChildrenOfItem(handle func(o objc.ProtocolBase, browser Browser, item objc.Object) int) {
objc.AddMethod(c.class, objc.SEL("browser:numberOfChildrenOfItem:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_TitleOfColumn(handle func(o objc.ProtocolBase, sender Browser, column int) string) {
objc.AddMethod(c.class, objc.SEL("browser:titleOfColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_ShouldTypeSelectForEvent_WithCurrentSearchString(handle func(o objc.ProtocolBase, browser Browser, event Event, searchString string) bool) {
objc.AddMethod(c.class, objc.SEL("browser:shouldTypeSelectForEvent:withCurrentSearchString:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_TypeSelectStringForRow_InColumn(handle func(o objc.ProtocolBase, browser Browser, row int, column int) string) {
objc.AddMethod(c.class, objc.SEL("browser:typeSelectStringForRow:inColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_NextTypeSelectMatchFromRow_ToRow_InColumn_ForString(handle func(o objc.ProtocolBase, browser Browser, startRow int, endRow int, column int, searchString string) int) {
objc.AddMethod(c.class, objc.SEL("browser:nextTypeSelectMatchFromRow:toRow:inColumn:forString:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_SelectCellWithString_InColumn(handle func(o objc.ProtocolBase, sender Browser, title string, column int) bool) {
objc.AddMethod(c.class, objc.SEL("browser:selectCellWithString:inColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_SelectRow_InColumn(handle func(o objc.ProtocolBase, sender Browser, row int, column int) bool) {
objc.AddMethod(c.class, objc.SEL("browser:selectRow:inColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_SelectionIndexesForProposedSelection_InColumn(handle func(o objc.ProtocolBase, browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IIndexSet) {
objc.AddMethod(c.class, objc.SEL("browser:selectionIndexesForProposedSelection:inColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_Child_OfItem(handle func(o objc.ProtocolBase, browser Browser, index int, item objc.Object) objc.IObject) {
objc.AddMethod(c.class, objc.SEL("browser:child:ofItem:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_IsLeafItem(handle func(o objc.ProtocolBase, browser Browser, item objc.Object) bool) {
objc.AddMethod(c.class, objc.SEL("browser:isLeafItem:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_ShouldEditItem(handle func(o objc.ProtocolBase, browser Browser, item objc.Object) bool) {
objc.AddMethod(c.class, objc.SEL("browser:shouldEditItem:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_ObjectValueForItem(handle func(o objc.ProtocolBase, browser Browser, item objc.Object) objc.IObject) {
objc.AddMethod(c.class, objc.SEL("browser:objectValueForItem:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_SetObjectValue_ForItem(handle func(o objc.ProtocolBase, browser Browser, object objc.Object, item objc.Object)) {
objc.AddMethod(c.class, objc.SEL("browser:setObjectValue:forItem:"), handle)
}
func (c *BrowserDelegateCreator) SetRootItemForBrowser(handle func(o objc.ProtocolBase, browser Browser) objc.IObject) {
objc.AddMethod(c.class, objc.SEL("rootItemForBrowser:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_PreviewViewControllerForLeafItem(handle func(o objc.ProtocolBase, browser Browser, item objc.Object) IViewController) {
objc.AddMethod(c.class, objc.SEL("browser:previewViewControllerForLeafItem:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_HeaderViewControllerForItem(handle func(o objc.ProtocolBase, browser Browser, item objc.Object) IViewController) {
objc.AddMethod(c.class, objc.SEL("browser:headerViewControllerForItem:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_CreateRowsForColumn_InMatrix(handle func(o objc.ProtocolBase, sender Browser, column int, matrix Matrix)) {
objc.AddMethod(c.class, objc.SEL("browser:createRowsForColumn:inMatrix:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_WillDisplayCell_AtRow_Column(handle func(o objc.ProtocolBase, sender Browser, cell objc.Object, row int, column int)) {
objc.AddMethod(c.class, objc.SEL("browser:willDisplayCell:atRow:column:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_DidChangeLastColumn_ToColumn(handle func(o objc.ProtocolBase, browser Browser, oldLastColumn int, column int)) {
objc.AddMethod(c.class, objc.SEL("browser:didChangeLastColumn:toColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowserWillScroll(handle func(o objc.ProtocolBase, sender Browser)) {
objc.AddMethod(c.class, objc.SEL("browserWillScroll:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowserDidScroll(handle func(o objc.ProtocolBase, sender Browser)) {
objc.AddMethod(c.class, objc.SEL("browserDidScroll:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_CanDragRowsWithIndexes_InColumn_WithEvent(handle func(o objc.ProtocolBase, browser Browser, rowIndexes foundation.IndexSet, column int, event Event) bool) {
objc.AddMethod(c.class, objc.SEL("browser:canDragRowsWithIndexes:inColumn:withEvent:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_DraggingImageForRowsWithIndexes_InColumn_WithEvent_Offset(handle func(o objc.ProtocolBase, browser Browser, rowIndexes foundation.IndexSet, column int, event Event, dragImageOffset *foundation.Point) IImage) {
objc.AddMethod(c.class, objc.SEL("browser:draggingImageForRowsWithIndexes:inColumn:withEvent:offset:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_ValidateDrop_ProposedRow_Column_DropOperation(handle func(o objc.ProtocolBase, browser Browser, info objc.Object, row *int, column *int, dropOperation *BrowserDropOperation) DragOperation) {
objc.AddMethod(c.class, objc.SEL("browser:validateDrop:proposedRow:column:dropOperation:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_AcceptDrop_AtRow_Column_DropOperation(handle func(o objc.ProtocolBase, browser Browser, info objc.Object, row int, column int, dropOperation BrowserDropOperation) bool) {
objc.AddMethod(c.class, objc.SEL("browser:acceptDrop:atRow:column:dropOperation:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_WriteRowsWithIndexes_InColumn_ToPasteboard(handle func(o objc.ProtocolBase, browser Browser, rowIndexes foundation.IndexSet, column int, pasteboard Pasteboard) bool) {
objc.AddMethod(c.class, objc.SEL("browser:writeRowsWithIndexes:inColumn:toPasteboard:"), handle)
}
// deprecated
func (c *BrowserDelegateCreator) SetBrowser_NamesOfPromisedFilesDroppedAtDestination_ForDraggedRowsWithIndexes_InColumn(handle func(o objc.ProtocolBase, browser Browser, dropDestination foundation.URL, rowIndexes foundation.IndexSet, column int) []string) {
objc.AddMethod(c.class, objc.SEL("browser:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:inColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_ShouldSizeColumn_ForUserResize_ToWidth(handle func(o objc.ProtocolBase, browser Browser, columnIndex int, forUserResize bool, suggestedWidth float64) float64) {
objc.AddMethod(c.class, objc.SEL("browser:shouldSizeColumn:forUserResize:toWidth:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_SizeToFitWidthOfColumn(handle func(o objc.ProtocolBase, browser Browser, columnIndex int) float64) {
objc.AddMethod(c.class, objc.SEL("browser:sizeToFitWidthOfColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowserColumnConfigurationDidChange(handle func(o objc.ProtocolBase, notification foundation.Notification)) {
objc.AddMethod(c.class, objc.SEL("browserColumnConfigurationDidChange:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_HeightOfRow_InColumn(handle func(o objc.ProtocolBase, browser Browser, row int, columnIndex int) float64) {
objc.AddMethod(c.class, objc.SEL("browser:heightOfRow:inColumn:"), handle)
}
func (c *BrowserDelegateCreator) SetBrowser_ShouldShowCellExpansionForRow_Column(handle func(o objc.ProtocolBase, browser Browser, row int, column int) bool) {
objc.AddMethod(c.class, objc.SEL("browser:shouldShowCellExpansionForRow:column:"), handle)
}
func (c *BrowserDelegateCreator) Create() objc.ProtocolBase {
return objc.ProtocolBase{Object: c.class.CreateInstance(0)}
}