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

# takeDoubleValueFrom(_:)

Sets the value of the receiver’s cell to a double-precision floating-point value obtained from the specified object.

## Declaration

```swift
func takeDoubleValueFrom(_ 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/doubleValue 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

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