document-based

What are the best uses of document stores?

吃可爱长大的小学妹 提交于 2019-12-02 18:06:34
I have been hearing a lot about document oriented data stores like CouchDB. I understand the uses of BigTable like stores such as Cassandra. After reading this question , I was wondering what the conditions would be to merit using a document store? Column-family stores such as Bigtable and Cassandra have very limited querying capabilities. The application is responsible for maintaining indexes in order to query a more complex data model. Document databases allow you to query the content, not just the key. It will also manage the indexes for you, reducing the complexity of your application.

Tutorial/example of a minimal document-based app

余生颓废 提交于 2019-12-01 03:54:06
I'm trying to understand how the things in Cocoa works but I'm struggling with one thing. I saw http://cocoawithlove.com/2010/09/minimalist-cocoa-programming.html and http://casperbhansen.wordpress.com/2010/08/15/dev-tip-nibless-development/ and I think I somewhat understood. Now, I would like to do the same but for a "Document-based application". Please, does anyone know of a tutorial or example akin to the ones above? Alternatively, what do I need to do to make it work? I think I need to create NSDocumentController - but how does it relate to NSApplication? And I create NSDocument from there

Where do you put cleanup code for NSDocument sub-classes?

雨燕双飞 提交于 2019-11-30 20:07:25
I have a document-based application and I have sub-classed NSDocument and provided the required methods, but my document needs some extensive clean-up (needs to run external tasks etc). Where is the best place to put this? I have tried a few different methods such as: close close: canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo dealloc If I put it in dealloc , sometimes it gets called and other times it does not (pressing Command+Q seems to bypass my document's deallocation), but it is mandatory that this code gets called without failure (unless program unexpectedly terminates).

Where do you put cleanup code for NSDocument sub-classes?

断了今生、忘了曾经 提交于 2019-11-30 04:12:32
问题 I have a document-based application and I have sub-classed NSDocument and provided the required methods, but my document needs some extensive clean-up (needs to run external tasks etc). Where is the best place to put this? I have tried a few different methods such as: close close: canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo dealloc If I put it in dealloc , sometimes it gets called and other times it does not (pressing Command+Q seems to bypass my document's deallocation), but

Multiple Documents in a Single Window in Cocoa

女生的网名这么多〃 提交于 2019-11-28 07:03:49
I want to write an application which may have multiple documents in a single window via a tabbed interface. Should I avoid the NSDocument architecture (the Cocoa Document-based Application template)? As far as I can tell, it supports only one or more window per document but not vice versa. I have been wrestling with this question for a while and have already built much of my application on the NSDocument architecture but I cannot figure out a good way to associate multiple documents with a single window. EDIT: I want to have project document windows in addition to basic document windows. At

Multiple Documents in a Single Window in Cocoa

耗尽温柔 提交于 2019-11-27 01:25:26
问题 I want to write an application which may have multiple documents in a single window via a tabbed interface. Should I avoid the NSDocument architecture (the Cocoa Document-based Application template)? As far as I can tell, it supports only one or more window per document but not vice versa. I have been wrestling with this question for a while and have already built much of my application on the NSDocument architecture but I cannot figure out a good way to associate multiple documents with a