objective c - NSWindow endSheet not dismissing sheet while presenting window is hidden -


as title notes, endsheet doesn't dismiss presented window when presenting window hidden.

i've created small project displaying issue here: https://github.com/r4n/testingsheetdismissal

  • if click "show sheet" button sheet displayed , ended in 3 seconds.

  • if click "show sheet" button , go file > "hide testingsheetdismissal", wait 3 seconds bring window up, sheet not ended.

i've looked @ documentation endsheet method, sheet programming guide, , searched here, couldn't find stated sheet couldn't ended while presenting window hidden.

does know if case? i.e. have show presneting window prior ending sheet?

edit:

in scenario presented sheet shows progress of longer running task, dismissing sheet prior hiding window isn't option. current solution display presenting window prior dismissing sheet, i'd dismiss sheet while window still hidden if possible. if isn't possible, link documentation specifies that?


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -