Hi Jens,

Yes, I know you had said that. I'm still storing my documents in the user's 
Documents app sandbox area though.

What's strange is I did some testing with renaming the document file while 
it was open and everything still worked fine as far as database reads and 
write. I haven't started syncing things yet though. I figured renaming the 
document while it was opened would have generated some sort of database 
access error, but it didn't. Strange.

Thanks,

Brendan

On Friday, September 25, 2015 at 11:23:40 AM UTC-6, Jens Alfke wrote:
>
>
> On Sep 25, 2015, at 10:00 AM, Brendan Duddridge <[email protected] 
> <javascript:>> 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/39d377fc-7493-4f3a-969a-d30db41ea415%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to