preventsApplicationTerminationWhenModal for Mac Catalyst or iPad app on M1 Mac

Hi.

I want my iPad app to run Intel/M1 Mac.
I tried Mac Catalyst and it seems work basically.
But I want the app to enable to close a window even if it has opened a modal.

NSWindow has "preventsApplicationTerminationWhenModal" property.
Are there any alternatives for Mac Catalyst or iPad app on M1 Mac?

Thanks.

  • Am I understanding this correctly: your app is presenting a modal dialog (through UIKit API), and you do not want this modal dialog to prevent app termination via Cmd-Q?

  • No. What I want is to enable close button of the app window even if a modal is opened.

Add a Comment