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

# takeIntValueFrom(_:)

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

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

## Parameters

`sender`

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

## Discussion

Use the [`takeIntegerValueFrom(_:)`](/documentation/AppKit/NSCell/takeIntegerValueFrom(_:)) method instead.

## See Also

[`var integerValue: Int`](/documentation/AppKit/NSCell/integerValue)

The cell’s value as an integer value.



---

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)