protocol_addProtocol(_:_:)
Adds a registered protocol to another protocol that is under construction.
Declaration
func protocol_addProtocol(_ proto: Protocol, _ addition: Protocol)Parameters
- proto:
The protocol you want to add the registered protocol to.
- addition:
The registered protocol you want to add to
proto.
Discussion
The protocol you want to add to (proto) must be under construction—allocated but not yet registered with the Objective-C runtime. The protocol you want to add (addition) must be registered already.
See Also
Working with Protocols
objc_getProtocol(_:)objc_copyProtocolList(_:)objc_allocateProtocol(_:)objc_registerProtocol(_:)protocol_addMethodDescription(_:_:_:_:_:)protocol_addProperty(_:_:_:_:_:_:)protocol_getName(_:)protocol_isEqual(_:_:)protocol_copyMethodDescriptionList(_:_:_:_:)protocol_getMethodDescription(_:_:_:_:)protocol_copyPropertyList(_:_:)protocol_getProperty(_:_:_:_:)protocol_copyProtocolList(_:_:)protocol_conformsToProtocol(_:_:)