---
title: refresh()
framework: eventkit
role: symbol
role_heading: Instance Method
path: eventkit/ekobject/refresh()
---

# refresh()

Merges changes to this object with the latest saved values.

## Declaration

```swift
func refresh() -> Bool
```

## Return Value

Return Value If the operation is successful, true; if the object was deleted in the event store, false. If this method returns false, the object should be released.

## Discussion

Discussion This method merges the local changes to properties of this object with the latest values in the event store. This method updates only properties that have not been modified locally, so you do not lose any changes by invoking this method. You can also use this method to see whether an object was deleted from the event store.

## See Also

### Saving and Restoring State

- [hasChanges](eventkit/ekobject/haschanges.md)
- [isNew](eventkit/ekobject/isnew.md)
- [reset()](eventkit/ekobject/reset().md)
- [rollback()](eventkit/ekobject/rollback().md)
