Check NSApp on Cocoa/OSX app has modal mode

323 Views Asked by At

How to check NSApp has modal mode?

Stop modal window

[NSApp stopModal];

But I don't see property check current app state is modal or not?

1

There are 1 best solutions below

0
On BEST ANSWER

Check property modalWindow on NSApp

BOOL isModalMode = !![NSApp modalWindow];