> On Sep 25, 2015, at 10:00 AM, Brendan Duddridge <[email protected]> wrote: > > One thing to note is that each of my NSDocument instances has its own > CBLManager I instantiate and keep in an ivar on my NSDocument subclass.
Oh — yeah, in that case you need a listener for each Manager because they can’t share. Each listener has to run on a different TCP port. > But maybe I need to re-think how I do that. I could always have one > CBLManager at the NSApp level and just create a separate database for each > NSDocument instance. CBLManager keeps all its databases in a single folder, so your document model does require a separate CBLManager for each document. (Also, I know I’ve said this before, but keeping Couchbase Lite databases in user-visible documents isn’t supported. If the user moves a document in the filesystem while it’s open, CBL will definitely get confused, because various components, including ForestDB, remember filesystem paths and assume that those don’t change.) —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/DCC4EFD4-8491-4B41-ACAF-71FF9CD50304%40mooseyard.com. For more options, visit https://groups.google.com/d/optout.
