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

# hasValidObjectValue

A Boolean value that indicates whether the cell has a valid object value.

```
var hasValidObjectValue: Bool { get }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> if the cell has a valid object value or <doc://com.apple.documentation/documentation/Swift/false> if it does not. A valid object value is one that the cell’s formatter can “understand.” Objects are always assumed to be valid unless they are rejected by the formatter. Invalid objects can still be accepted by the delegate of the cell’s [`NSControl`](/documentation/AppKit/NSControl) object (using the [`control(_:didFailToFormatString:errorDescription:)`](/documentation/AppKit/NSControlTextEditingDelegate/control(_:didFailToFormatString:errorDescription:)) delegate method).

---

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)