The question
What happens when one click on the red button to close the window attached to an NSDocument
?
What methods are called on which object?
Can I hook up somewhere in the process?
Why I ask this question:
When I click on the red button here of the window attached to the
NSDocument
, the panel
does not show up. I want to debug this, and that's why I need to know the process of actions raised by this click.
More info
I put a breaking point in - (void)windowWillClose:
. When it stops here, the window seems to be already closed and if I ask p (bool) [self isDocumentEdited]
, I get true
.