How to indicate doc needs saving?


#1

I have a test app based on protoapp.
I added some custom node properties but I can’t see where I can set the doc to “needs saving” after changing a customnode property
TIA


#2

For GoObject state, calling the Changed method will inform the object’s document that something has changed by calling GoDocument.RaiseChanged.
For GoDocument state, calling the RaiseChanged method will call OnChanged, which sets the GoDocument.IsModified property.
If your application supports undo/redo, you probably want to extend your GoObject and/or GoDocument classes by overriding the ChangeValue method.
Of course you can just set GoDocument.IsModified yourself, but it’s rather unusual to do so unless you have just initialized or loaded or saved the document.