stateChangedNotification
A notification the document object posts when there’s a change in the state of the document.
Declaration
nonisolated class let stateChangedNotification: NSNotification.NameDiscussion
When handling this notification, check the value of the documentState property to see what the new state is, and then proceed accordingly. There’s no userInfo dictionary.