addToBuilder static method

void addToBuilder(
  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.

Note: You cannot call this method after you have called builder.build.

Implementation

static void addToBuilder(
  objc.ObjCProtocolBuilder builder, {
  void Function(NSPathCell, NSOpenPanel)? pathCell_willDisplayOpenPanel_,
  void Function(NSPathCell, NSMenu)? pathCell_willPopUpMenu_,
  bool $keepIsolateAlive = true,
}) {
  NSPathCellDelegate.pathCell_willDisplayOpenPanel_.implement(
    builder,
    pathCell_willDisplayOpenPanel_,
  );
  NSPathCellDelegate.pathCell_willPopUpMenu_.implement(
    builder,
    pathCell_willPopUpMenu_,
  );
  builder.addProtocol($protocol);
}