Searches for an object that can receive the message specified by the given selector.
- macOS 10.0+
The desired action message. May be
nil, in which case this method will return
The target object to check. Specify
nilif you want to search the responder chain starting with the current first responder.
The potential sender for the action message.
The object that can accept the specified action message or
nil if no target object can receive the message from the specified
The system looks for an object that implements a method matching
a is specified, the system verifies that it is a valid target for the provided action and sender, returning
a if valid,
If the provided target is
nil, the search begins with the first responder of the key window. The system follows the Responder object looking for targets. If no object capable of handling the message is found in the responder chain, returns