mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-15 05:12:15 +01:00
Docs update
This commit is contained in:
1 parent
a267395618
commit
f5fed063ee
56 files changed
+853
-863
No files matched your search
@@ -32,7 +32,7 @@ import CoreData
|
||||
/**
|
||||
The `ObjectMonitor` monitors changes to a single `DynamicObject` instance. Observers that implement the `ObjectObserver` protocol may then register themselves to the `ObjectMonitor`'s `addObserver(_:)` method:
|
||||
```
|
||||
let monitor = CoreStore.monitorObject(object)
|
||||
let monitor = dataStack.monitorObject(object)
|
||||
monitor.addObserver(self)
|
||||
```
|
||||
The created `ObjectMonitor` instance needs to be held on (retained) for as long as the object needs to be observed.
|
||||
|
||||
Reference in new issue
Block a user