Returns a Boolean value that indicates whether the receiver conforms to a given protocol.
Mac Catalyst 13.0+Beta
A protocol object that represents a particular protocol.
YES if the receiver conforms to aProtocol, otherwise NO.
This method works identically to the conformsToProtocol: class method declared in NSObject. It’s provided as a convenience so that you don’t need to get the class object to find out whether an instance can respond to a given set of messages.
Testing Object Inheritance, Behavior, and Conformance
Returns a Boolean value that indicates whether the receiver implements or inherits a method that can respond to a specified message.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.