<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/takeStringValueFrom(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(im)takeStringValueFrom:"
  },
  "title" : "takeStringValueFrom(_:)"
}
-->

# takeStringValueFrom(_:)

Sets the value of the receiver’s cell to the string value obtained from the specified object.

```
func takeStringValueFrom(_ sender: Any?)
```

## Parameters

`sender`

The object from which to take the value. This object must implement the [`stringValue`](/documentation/AppKit/NSCell/stringValue) property.

## See Also

[`var stringValue: String`](/documentation/AppKit/NSCell/stringValue)

The cell’s value as a string.



---

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)