Close button during modal sheet

Posted by Nano8Blazex on Stack Overflow See other posts from Stack Overflow or by Nano8Blazex
Published on 2010-04-06T04:16:59Z Indexed on 2010/04/06 4:23 UTC
Read the original article Hit count: 355

Filed under:
|
|

In Objective C (Cocoa) I have an app running with a modal sheet, but I want to allow the app to quit even when the sheet is displayed (contradicting the definition of modal I think, but I like the animated effect of modal sheets).

I'm already using the -setPreventsApplicationTerminationWhenModal method and it works fine, but I'm wondering... is there any way to keep the close button enabled? The little circle usually red-colored close button that comes with all windows in the top left corner (side by side with minimize and maximize)? Right now it's completely disabled when the sheet is running, and it would be awesome if there is a way to enable it.

Thanks!

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about macosx