modal window and quit menu item
modal window and quit menu item
- Subject: modal window and quit menu item
- From: email@hidden
- Date: Sat, 19 Oct 2013 12:35:51 +1300
I have done a net search concerning the problem and I have found
discussions on it, but no solution.
Problem : quit menu stays active
when a window is presented using [NSApp runModal:window].
Quitting
causes the menu item to be permanently disabled.
[window
setPreventsApplicationTerminationWhenModal:] does not work.
My [NSApp
applicationShouldTerminate:] delegate message postpones the application
termination as certain cleanup code doesn't work at all when invoked
from the message.
For now, using a normal window or an asynchronous
sheet isn't an option without some annoying code rewrite.
Does anyone
know of a solution to either disable the quit menu item or re-enable the
quit menu item.
TIA
_______________________________________________
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