<!--
{
  "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/Thread/init(target:selector:object:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSThread(im)initWithTarget:selector:object:"
  },
  "title" : "init(target:selector:object:)"
}
-->

# init(target:selector:object:)

Returns an `NSThread` object initialized with the given arguments.

```
convenience init(target: Any, selector: Selector, object argument: Any?)
```

## Parameters

`target`

The object to which the message specified by `selector` is sent.

`selector`

The selector for the message to send to `target`. This selector must take only one argument and must not have a return value.

`argument`

The single argument passed to the target. May be `nil`.

## Return Value

An `NSThread` object initialized with the given arguments.

## Discussion

The objects `target` and `argument` are retained during the execution of the detached thread. They are released when the thread finally exits.

## See Also

[`start()`](/documentation/Foundation/Thread/start())

Starts the receiver.



---

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)