---
title: invoke
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsinvocation/invoke
---

# invoke

Sends the receiver’s message (with arguments) to its target and sets the return value.

## Declaration

```occ
- (void) invoke;
```

## Discussion

Discussion You must set the receiver’s target, selector, and argument values before calling this method.

## See Also

### Related Documentation

- [selector](foundation/nsinvocation/selector.md)
- [setArgument:atIndex:](foundation/nsinvocation/setargument:atindex:.md)
- [getReturnValue:](foundation/nsinvocation/getreturnvalue:.md)

### Dispatching an Invocation

- [invokeWithTarget:](foundation/nsinvocation/invokewithtarget:.md)
