addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required NSArray localizedSummaryItems(),
- NSSet keyPathsForValuesAffectingPreview()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSPrintPanelAccessorizing 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, {
required objc.NSArray Function() localizedSummaryItems,
objc.NSSet Function()? keyPathsForValuesAffectingPreview,
bool $keepIsolateAlive = true,
}) {
NSPrintPanelAccessorizing.localizedSummaryItems.implement(
builder,
localizedSummaryItems,
);
NSPrintPanelAccessorizing.keyPathsForValuesAffectingPreview.implement(
builder,
keyPathsForValuesAffectingPreview,
);
builder.addProtocol($protocol);
}