• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
modal window and quit menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: modal window and quit menu item
      • From: Ken Thomases <email@hidden>
    • Re: modal window and quit menu item
      • From: Mikael Hakman <email@hidden>
  • Prev by Date: Re: C functions
  • Next by Date: Re: C functions
  • Previous by thread: Re: NSDocument and KVO compliance
  • Next by thread: Re: modal window and quit menu item
  • Index(es):
    • Date
    • Thread