Skip navigation.
 
mlHowto issue stopModal to NSApp if the Window is close?
FROM : Devraj Mukherjee
DATE : Sat Feb 02 06:50:49 2008

Hi everyone,

I have a Window in my Nib file that I run in modal mode using [NSApp
runModalForWindow: aWindow]. By default a button on the Window issues
the [NSApp stopModal] and then the application continues.

However when someone hits the close button the application is still in
Modal mode. Is there a way of hooking onto the "close" action so I can
stop the application running in modal mode after the Window has been
closed.

Thanks.

--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

Related mailsAuthorDate
mlHowto issue stopModal to NSApp if the Window is close? Devraj Mukherjee Feb 2, 06:50
mlRe: Howto issue stopModal to NSApp if the Window is close? Nir Soffer Feb 5, 19:54