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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -