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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to