---
title: "takeIntValueFrom(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscontrol/takeintvaluefrom(_:)"
---

# takeIntValueFrom(_:)

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

## Declaration

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

## Parameters

- `sender`: The object from which to take the value. This object must respond to the doc://com.apple.appkit/documentation/AppKit/NSControl/intValue property.

## Discussion

Discussion You can use this method to link action messages between controls. It permits one control or cell (sender) to affect the value of another control (the receiver) by invoking this method in an action message to the receiver. For example, a text field can be made the target of a slider. Whenever the slider is moved, it sends this message to the text field. The text field then obtains the slider’s value, turns it into a text string, and displays it.

## See Also

### Interacting with Other Controls

- [takeDoubleValueFrom(_:)](appkit/nscontrol/takedoublevaluefrom(_:).md)
- [takeFloatValueFrom(_:)](appkit/nscontrol/takefloatvaluefrom(_:).md)
- [takeIntegerValueFrom(_:)](appkit/nscontrol/takeintegervaluefrom(_:).md)
- [takeObjectValueFrom(_:)](appkit/nscontrol/takeobjectvaluefrom(_:).md)
- [takeStringValueFrom(_:)](appkit/nscontrol/takestringvaluefrom(_:).md)
