> On Oct 17, 2014, at 5:13 PM, Steve <[email protected]> wrote: > > In each of my app's views (i.e. in each view controller) I plan to add an > observer to NSNotificationCenter. Each observer would monitor sync progress, > check for sync errors and alert the user if need be (without bombarding them > with error messages). Is this a reasonable approach?
This is more of an app-design question … you might take a look at the way ToDoLite does it. There's a SyncManager that monitors sync state, and a nav-bar button item that indicates status. (Actually the status indication might not be implemented yet. But it wouldn't be hard to do.) But putting a separate observer in every view seems like the wrong way to go about it (violating the DRY principle.) Instead put the code someplace that's global to the entire app. —Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/EB6F6207-8683-4B5E-809F-45BDDBA2413C%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
