Check NSApp on Cocoa/OSX app has modal mode

276 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 answers

0
Giau Huynh On BEST ANSWER

Check property modalWindow on NSApp

BOOL isModalMode = !![NSApp modalWindow];