NSDocument: revertDocumentToSaved problem
NSDocument: revertDocumentToSaved problem
- Subject: NSDocument: revertDocumentToSaved problem
- From: Manfred Lippert <email@hidden>
- Date: Thu, 31 Jan 2002 18:16:01 +0100
Hi,
is there a way to determine when "revertDocumentToSaved" has finished its
"Would you really revert"-Sheet? When "readFromFile" is called, the sheet is
still be opened. I need to hook into a place after the Sheet has
disappeared.
I tried to override revertDocumentToSaved and call [super
revertDocumentToSaved] and was hopening the sheet is gone after this call,
but the Sheet is running asynchronous to this method, so this also does not
work.
The only way I see is to override the selector the Sheet uses when it is
finished, but I don't know the Name of the selector and I don't know if this
actually will be possible and it also seems very "dirty".
Any other ideas?
I thought of a timer that regulary checks if the window has a sheet
connected. Will this be possible?
Regards,
Mani