Hi there,
I am currently working on a Swift project that uses CouchBase Lite and I need to implement some form of data change observer mecanism.
The Database object change delegate looked promising but it does not seem to be there in iOS.
Am I mistake, or is it actually missing ?
If it is not there what other mecanism could I use?
Many thanks in advance for your reply,
JM
pasin
2
There is a kCBLDatabaseChangeNotification notification that you can observe. See a sample code the Database notifications section here: http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/database/index.html.
Thanks for that, the Swift syntax is quite different from the default one as stated in the documentation, that is why I got lost along the way.
But I am back on track now, thank you.
JM