On 25/10/12 00:29, Daniel Price wrote:

Is it possible to implement autosave in Qt/mac applications as was introduced in OSX Lion (and refined in Mountain Lion)? Has anyone done this?


I think what you want to know is: Does Qt provide an API that you can use, which results in Lion's autosave/versions being used. The answer is No.

If you want "Mac" document handling (including Lion autosave/versions), you need to use NSDocument.

If you have an app based on the MV or MVC pattern, you can replace your "model" class with something that wraps NSDocument.

For example, I found this sample document-based app using Qt. It does not use NSDocument but it should not be particularly hard to modify it so that it does.
http://members.shaw.ca/akochoi/articles/Qt-document-based-application/index.html

--
Link

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to