<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSInvocationOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSInvocationOperation"
  },
  "title" : "NSInvocationOperation"
}
-->

# NSInvocationOperation

An operation that manages the execution of a single encapsulated task specified as an invocation.

```
@interface NSInvocationOperation : NSOperation
```

## Overview

The [`NSInvocationOperation`](/documentation/Foundation/NSInvocationOperation) class is a concrete subclass of [`Operation`](/documentation/Foundation/Operation) that you use to initiate an operation that consists of invoking a selector on a specified object. This class implements a non-concurrent operation.

For more information on concurrent versus non-concurrent operations, see [`Operation`](/documentation/Foundation/Operation).

## Topics

### Initialization

[`initWithTarget:selector:object:`](/documentation/Foundation/NSInvocationOperation/initWithTarget:selector:object:)

Returns an `NSInvocationOperation` object initialized with the specified target and selector.

[`initWithInvocation:`](/documentation/Foundation/NSInvocationOperation/initWithInvocation:)

Returns an `NSInvocationOperation` object initialized with the specified invocation object.

### Getting Attributes

[`invocation`](/documentation/Foundation/NSInvocationOperation/invocation)

The receiver’s invocation object.

[`result`](/documentation/Foundation/NSInvocationOperation/result)

The result of the invocation or method.

### Constants

[Result Exceptions](/documentation/Foundation/result-exceptions)

Names of exceptions raised by `NSInvocationOperation` if there is an error when calling the [`result`](/documentation/Foundation/NSInvocationOperation/result) method.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)