addToBuilderAsBlocking static method

void addToBuilderAsBlocking(
  1. ObjCProtocolBuilder builder, {
  2. void pathCell_willDisplayOpenPanel_(
    1. NSPathCell,
    2. NSOpenPanel
    )?,
  3. void pathCell_willPopUpMenu_(
    1. NSPathCell,
    2. NSMenu
    )?,
  4. 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);
}