<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Scripting Bridge",
  "identifier" : "/documentation/ScriptingBridge/SBObject/setTo(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Scripting Bridge",
      "ScriptingBridge"
    ],
    "preciseIdentifier" : "c:objc(cs)SBObject(im)setTo:"
  },
  "title" : "setTo(_:)"
}
-->

# setTo(_:)

Sets the receiver to a specified value.

```
func setTo(_ value: Any?)
```

## Parameters

`value`

The data the receiver should be set to. It can be an
<doc://com.apple.documentation/documentation/Foundation/NSString>,
<doc://com.apple.documentation/documentation/Foundation/NSNumber>,
<doc://com.apple.documentation/documentation/Foundation/NSArray>,
`SBObject`, or any other type of object supported by the Scripting Bridge
framework.

## Discussion

You should not call this method directly.

---

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)