Howto issue stopModal to NSApp if the Window is close?
Howto issue stopModal to NSApp if the Window is close?
- Subject: Howto issue stopModal to NSApp if the Window is close?
- From: "Devraj Mukherjee" <email@hidden>
- Date: Sat, 2 Feb 2008 16:50:49 +1100
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)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden