addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- bool makeNewConnection_sender_()?,
- bool connection_shouldMakeNewConnection_()?,
- NSData authenticationDataForComponents_(
- NSArray
- bool authenticateComponents_withData_(
- NSArray,
- NSData
- ObjCObjectBase createConversationForConnection_()?,
- bool connection_handleRequest_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSConnectionDelegate 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, {
bool Function(NSConnection, NSConnection)? makeNewConnection_sender_,
bool Function(NSConnection, NSConnection)?
connection_shouldMakeNewConnection_,
objc.NSData Function(objc.NSArray)? authenticationDataForComponents_,
bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_,
objc.ObjCObjectBase Function(NSConnection)?
createConversationForConnection_,
bool Function(NSConnection, NSDistantObjectRequest)?
connection_handleRequest_,
bool $keepIsolateAlive = true,
}) {
NSConnectionDelegate.makeNewConnection_sender_.implement(
builder,
makeNewConnection_sender_,
);
NSConnectionDelegate.connection_shouldMakeNewConnection_.implement(
builder,
connection_shouldMakeNewConnection_,
);
NSConnectionDelegate.authenticationDataForComponents_.implement(
builder,
authenticationDataForComponents_,
);
NSConnectionDelegate.authenticateComponents_withData_.implement(
builder,
authenticateComponents_withData_,
);
NSConnectionDelegate.createConversationForConnection_.implement(
builder,
createConversationForConnection_,
);
NSConnectionDelegate.connection_handleRequest_.implement(
builder,
connection_handleRequest_,
);
builder.addProtocol($protocol);
}