Re: modal window and quit menu item
Re: modal window and quit menu item
- Subject: Re: modal window and quit menu item
- From: Mikael Hakman <email@hidden>
- Date: Sat, 19 Oct 2013 02:08:40 +0200
Is it an error message that you display at the time your user quits the application?
/Mikael
On Oct 19, 2013, at 1:35 AM, email@hidden wrote:
>
>
> 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
_______________________________________________
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