Returns the function pointer that would be called if a particular message were sent to an instance of a class.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
- Objective-C Runtime
The class you want to inspect.
The function pointer that would be called if
[object name] were called with an instance of the class, or
class may be faster than
The function pointer returned may be a function internal to the runtime instead of an actual method implementation. For example, if instances of the class do not respond to the selector, the function pointer returned will be part of the runtime's message forwarding machinery.