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

# takeIntegerValueFrom(_:)

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

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

## Parameters

`sender`

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

## 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)