Sends the given action message to the given target.
- macOS 10.0+
The action message you want to send.
The target object that defines the specified action message.
The object to pass for the action message’s parameter.
YES if the action was successfully sent; otherwise
NO. This method also returns
shared looks for an object that can respond to the message—that is, an object that implements a method matching
an. It begins with the first responder of the key window. If the first responder can’t respond, it tries the first responder’s next responder and continues following next responder links up the responder chain. If none of the objects in the key window’s responder chain can handle the message,
shared attempts to send the message to the key window’s delegate.
If the delegate doesn’t respond and the main window is different from the key window,
shared begins again with the first responder in the main window. If objects in the main window can’t respond,
shared attempts to send the message to the main window’s delegate. If still no object has responded,
shared tries to handle the message itself. If
shared can’t respond, it attempts to send the message to its own delegate.