// Prepare to send KVO notifications about all my properties in case they changed:
NSSet* keys = [[self class] propertyNames];
for (NSString* key in keys)
[self willChangeValueForKey: key];
On Nov 15, 2015, at 11:23 PM, Brendan Duddridge <bren...@gmail.com> wrote:
However, I ran into a problem with replication. Because replication happens on a background thread, the KVO notifications of objects being created isn't happening on the main thread so I'm getting crashes.
To work around this problem I've stopped using my custom dispatchQueue, but that also means I am unable to update the UI to show progress indicators and status messages.
On Nov 16, 2015, at 6:21 AM, Jordan Wood <wood.p...@gmail.com> wrote:
We are just moving our app from Firebase to Couchbase, and I was just about to change the code to use a custom dispatch queue for performance reasons. Does running on a custom dispatch queue actually work?
I don’t understand … why are you unable?
On Nov 16, 2015, at 10:57 AM, Brendan Duddridge <bren...@gmail.com> wrote:
I also have bindings to my model objects that display things such as the name of a form or the name of a field. So when KVO updates those from a background thread, that's where the crashes happen as it's trying to update the UI because of the notifications.