---
title: "supplementalTarget(forAction:sender:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsresponder/supplementaltarget(foraction:sender:)"
---

# supplementalTarget(forAction:sender:)

Finds a target for an action method.

## Declaration

```swift
func supplementalTarget(forAction action: Selector, sender: Any?) -> Any?
```

## Parameters

- `action`: The requested action.
- `sender`: The message sender.

## Return Value

Return Value An object which responds to the action, or nil.

## Discussion

Discussion If this NSResponder instance does not itself respondsToSelector:, then supplementalTargetForAction:sender: is called. This method should return an object which responds to the action; if this responder does not have a supplemental object that does that, the implementation of this method should call super’s supplementalTargetForAction:sender:. NSResponder’s implementation returns nil.

## See Also

### Responding to Action Messages

- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [Action Messages](appkit/action-messages.md)
