---
title: faultingState
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsmanagedobject/faultingstate
---

# faultingState

The faulting state of the managed object.

## Declaration

```swift
var faultingState: Int { get }
```

## Return Value

Return Value 0 if the object is fully initialized as a managed object and not transitioning to or from another state, otherwise some other value.

## Discussion

Discussion 0 if the object is fully initialized as a managed object and not transitioning to or from another state, otherwise some other value. This property allows you to determine if an object is in a transitional phase when receiving a key-value observing change notification.

## See Also

### Getting State Information

- [managedObjectContext](coredata/nsmanagedobject/managedobjectcontext.md)
- [hasChanges](coredata/nsmanagedobject/haschanges.md)
- [isInserted](coredata/nsmanagedobject/isinserted.md)
- [isUpdated](coredata/nsmanagedobject/isupdated.md)
- [isDeleted](coredata/nsmanagedobject/isdeleted.md)
- [isFault](coredata/nsmanagedobject/isfault.md)
- [hasFault(forRelationshipNamed:)](coredata/nsmanagedobject/hasfault(forrelationshipnamed:).md)
- [hasPersistentChangedValues](coredata/nsmanagedobject/haspersistentchangedvalues.md)
