[Interest] autosave on OSX
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest