addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- void pathCell_willDisplayOpenPanel_()?,
- void pathCell_willPopUpMenu_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSPathCellDelegate 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, {
void Function(NSPathCell, NSOpenPanel)? pathCell_willDisplayOpenPanel_,
void Function(NSPathCell, NSMenu)? pathCell_willPopUpMenu_,
bool $keepIsolateAlive = true,
}) {
NSPathCellDelegate.pathCell_willDisplayOpenPanel_.implementAsBlocking(
builder,
pathCell_willDisplayOpenPanel_,
);
NSPathCellDelegate.pathCell_willPopUpMenu_.implementAsBlocking(
builder,
pathCell_willPopUpMenu_,
);
builder.addProtocol($protocol);
}