I have an app which overrides -[NSWindow miniaturize:] in a category (to avoid crowding the dock).
Works perfectly, but...

If this window being minimized has a sheet attached (attachedSheet is non-nil) this will be lost on deminiaturizing. But the modal loop is still running, waiting for some button to be pressed on the now invisible sheet.
In this case Force Quit is the only way out. Not very nice.

So, what can be done?
1. On miniaturize simulate a click on the "Cancel" button of the sheet. But how?

2. On deminiaturize reattach this sheet. But again: how?

3. (don't like this very much) refuse to miniaturize if a sheet is open.


Kind regards,

Gerriet.

_______________________________________________

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

This email sent to [EMAIL PROTECTED]

Reply via email to