addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(})
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);
}