addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- DartNSInteger numberOfRowsInTableView_()?,
- ObjCObjectBase? tableView_objectValueForTableColumn_row_()?,
- void tableView_setObjectValue_forTableColumn_row_(
- NSTableView,
- ObjCObjectBase?,
- NSTableColumn?,
- DartNSInteger,
- void tableView_sortDescriptorsDidChange_(
- NSTableView,
- NSArray
- NSPasteboardWriting? tableView_pasteboardWriterForRow_()?,
- void tableView_draggingSession_willBeginAtPoint_forRowIndexes_(
- NSTableView,
- NSDraggingSession,
- NSPoint,
- NSIndexSet,
- void tableView_draggingSession_endedAtPoint_operation_()?,
- void tableView_updateDraggingItemsForDrag_()?,
- bool tableView_writeRowsWithIndexes_toPasteboard_(
- NSTableView,
- NSIndexSet,
- NSPasteboard
- NSDragOperation tableView_validateDrop_proposedRow_proposedDropOperation_()?,
- bool tableView_acceptDrop_row_dropOperation_()?,
- NSArray tableView_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_(
- NSTableView,
- NSURL,
- NSIndexSet
- bool $keepIsolateAlive = true,
Adds the implementation of the NSTableViewDataSource protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as blocking
listeners will be.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilderAsBlocking(
objc.ObjCProtocolBuilder builder, {
DartNSInteger Function(NSTableView)? numberOfRowsInTableView_,
objc.ObjCObjectBase? Function(NSTableView, NSTableColumn?, DartNSInteger)?
tableView_objectValueForTableColumn_row_,
void Function(
NSTableView,
objc.ObjCObjectBase?,
NSTableColumn?,
DartNSInteger,
)?
tableView_setObjectValue_forTableColumn_row_,
void Function(NSTableView, objc.NSArray)?
tableView_sortDescriptorsDidChange_,
NSPasteboardWriting? Function(NSTableView, DartNSInteger)?
tableView_pasteboardWriterForRow_,
void Function(NSTableView, NSDraggingSession, NSPoint, objc.NSIndexSet)?
tableView_draggingSession_willBeginAtPoint_forRowIndexes_,
void Function(NSTableView, NSDraggingSession, NSPoint, NSDragOperation)?
tableView_draggingSession_endedAtPoint_operation_,
void Function(NSTableView, NSDraggingInfo)?
tableView_updateDraggingItemsForDrag_,
bool Function(NSTableView, objc.NSIndexSet, NSPasteboard)?
tableView_writeRowsWithIndexes_toPasteboard_,
NSDragOperation Function(
NSTableView,
NSDraggingInfo,
DartNSInteger,
NSTableViewDropOperation,
)?
tableView_validateDrop_proposedRow_proposedDropOperation_,
bool Function(
NSTableView,
NSDraggingInfo,
DartNSInteger,
NSTableViewDropOperation,
)?
tableView_acceptDrop_row_dropOperation_,
objc.NSArray Function(NSTableView, objc.NSURL, objc.NSIndexSet)?
tableView_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_,
bool $keepIsolateAlive = true,
}) {
NSTableViewDataSource.numberOfRowsInTableView_.implement(
builder,
numberOfRowsInTableView_,
);
NSTableViewDataSource.tableView_objectValueForTableColumn_row_.implement(
builder,
tableView_objectValueForTableColumn_row_,
);
NSTableViewDataSource.tableView_setObjectValue_forTableColumn_row_
.implementAsBlocking(
builder,
tableView_setObjectValue_forTableColumn_row_,
);
NSTableViewDataSource.tableView_sortDescriptorsDidChange_
.implementAsBlocking(builder, tableView_sortDescriptorsDidChange_);
NSTableViewDataSource.tableView_pasteboardWriterForRow_.implement(
builder,
tableView_pasteboardWriterForRow_,
);
NSTableViewDataSource
.tableView_draggingSession_willBeginAtPoint_forRowIndexes_
.implementAsBlocking(
builder,
tableView_draggingSession_willBeginAtPoint_forRowIndexes_,
);
NSTableViewDataSource.tableView_draggingSession_endedAtPoint_operation_
.implementAsBlocking(
builder,
tableView_draggingSession_endedAtPoint_operation_,
);
NSTableViewDataSource.tableView_updateDraggingItemsForDrag_
.implementAsBlocking(builder, tableView_updateDraggingItemsForDrag_);
NSTableViewDataSource.tableView_writeRowsWithIndexes_toPasteboard_
.implement(builder, tableView_writeRowsWithIndexes_toPasteboard_);
NSTableViewDataSource
.tableView_validateDrop_proposedRow_proposedDropOperation_
.implement(
builder,
tableView_validateDrop_proposedRow_proposedDropOperation_,
);
NSTableViewDataSource.tableView_acceptDrop_row_dropOperation_.implement(
builder,
tableView_acceptDrop_row_dropOperation_,
);
NSTableViewDataSource
.tableView_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_
.implement(
builder,
tableView_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_,
);
builder.addProtocol($protocol);
}