---
title: "takeObjectValueFrom(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscell/takeobjectvaluefrom(_:)"
---

# takeObjectValueFrom(_:)

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

## Declaration

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

## Parameters

- `sender`: The object from which to take the value. This object must support the doc://com.apple.appkit/documentation/AppKit/NSCell/objectValue property.

## See Also

### Related Documentation

- [objectValue](appkit/nscell/objectvalue.md)

### Deriving Values

- [takeIntegerValueFrom(_:)](appkit/nscell/takeintegervaluefrom(_:).md)
- [takeIntValueFrom(_:)](appkit/nscell/takeintvaluefrom(_:).md)
- [takeStringValueFrom(_:)](appkit/nscell/takestringvaluefrom(_:).md)
- [takeDoubleValueFrom(_:)](appkit/nscell/takedoublevaluefrom(_:).md)
- [takeFloatValueFrom(_:)](appkit/nscell/takefloatvaluefrom(_:).md)
