addToBuilderAsBlocking static method

void addToBuilderAsBlocking(
  1. ObjCProtocolBuilder builder, {
  2. void objectDidBeginEditing_(
    1. NSEditor
    )?,
  3. void objectDidEndEditing_(
    1. NSEditor
    )?,
  4. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSEditorRegistration 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(NSEditor)? objectDidBeginEditing_,
  void Function(NSEditor)? objectDidEndEditing_,
  bool $keepIsolateAlive = true,
}) {
  NSEditorRegistration.objectDidBeginEditing_.implementAsBlocking(
    builder,
    objectDidBeginEditing_,
  );
  NSEditorRegistration.objectDidEndEditing_.implementAsBlocking(
    builder,
    objectDidEndEditing_,
  );
  builder.addProtocol($protocol);
}