When my app opens a big document, this can involve extensive calculations, which can take a few seconds to complete. Before launching these calculations, if the file is above a certain size, my readFromURL:ofType:error: method opens a panel with a simple indeterminate progress bar and a few words, just to reassure the user that something is going on in the background before the document window appears.
I open this panel by sending a simple showWindow: message to a window controller that is a member of my app controller (the same panel is reused for all documents), and I close the panel after the calculations are finished.
Until El Capitán, this worked perfectly. With El Capitán the panel doesn’t appear at all. If I comment out the line of code that closes the panel, then the panel appears (and stays) at the moment the document window appears(after all the calculations are done), which is too late!
Other panels that the user can open once the document window has been displayed open normally.
How can I fix that?