Search code examples
objective-ccocoansdocumentnsundomanager

Getting Notifications of isDocumentEdited


is it possible to bind/get notifications of the isDocumentEdited property of NSDocument without calling the will/didChangeValueForKey: methods on every change?


Solution

  • Override -updateChangeCount: in your subclass so it posts an NSNotification or does whatever work you're after.