---
title: refreshAllObjects()
framework: coredata
role: symbol
role_heading: Instance Method
path: coredata/nsmanagedobjectcontext/refreshallobjects()
---

# refreshAllObjects()

Refreshes all of the registered managed objects in the context.

## Declaration

```swift
func refreshAllObjects()
```

## Mentioned in

Accessing data when the store changes

## See Also

### Registering and fetching objects

- [fetch(_:)](coredata/nsmanagedobjectcontext/fetch(_:)-38ys1.md)
- [fetch(_:)](coredata/nsmanagedobjectcontext/fetch(_:)-4xeoz.md)
- [count(for:)](coredata/nsmanagedobjectcontext/count(for:)-93zbm.md)
- [registeredObject(for:)](coredata/nsmanagedobjectcontext/registeredobject(for:).md)
- [object(with:)](coredata/nsmanagedobjectcontext/object(with:).md)
- [existingObject(with:)](coredata/nsmanagedobjectcontext/existingobject(with:).md)
- [registeredObjects](coredata/nsmanagedobjectcontext/registeredobjects.md)
- [count(for:)](coredata/nsmanagedobjectcontext/count(for:)-3r91z.md)
- [execute(_:)](coredata/nsmanagedobjectcontext/execute(_:).md)
- [retainsRegisteredObjects](coredata/nsmanagedobjectcontext/retainsregisteredobjects.md)
