Question

I'm working on an app currently, and was scratching my head thinking that previous versions wasn't working; however it turns out that closing the document window and re-opening after a restore the restored values are now displayed.

The problem arises after performing the restore, the UI simply doesn't reflect that a restore has taken place.

Does anybody know of why this could be / how to fix the issue?

Thanks, Clint

Was it helpful?

Solution 2

Turns out, it had nothing to do with the restoreFromCoder etc.

It was where the document object was being stamped over each time, this doesn't update the UI as UI updates a performed when a property is set, thus resulting in the binding being invalidated.

The way I got around this, was by every time it loads from a document, it simply "assimilates" the new document objects values into the existing ones (initialised to defaults in init); this results in the UI updating seamlessly when the user restores.

OTHER TIPS

Have you implemented the required API for restoring the UI state of your windows? If you don't know what I'm talking about, you need to read this section of the documentation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top