[Interest] autosave on OSX
Lincoln Ramsay
a1291762 at gmail.com
Thu Oct 25 00:55:19 CEST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121025/1ec0af8f/attachment.html>
More information about the Interest
mailing list