Ordering out a sheet when its parent is hidden
Ordering out a sheet when its parent is hidden
- Subject: Ordering out a sheet when its parent is hidden
- From: John Stiles <email@hidden>
- Date: Thu, 29 Jan 2004 16:55:47 -0800
I have a sheet attached to my parent window that shows progress of an
operation. When the operation is complete, the sheet should vanish on
its own. However, I found that end users will minimize the parent
window to do other work while the operation is going, and when the end
user unminimizes it later, the sheet is still attached (even though it
should be gone--I am removing it by calling:
[_progressSheet orderOut:self];
[NSApp endSheet:_progressSheet returnCode:0];
). I did find a workaround--I unminimize the parent window myself right
before the aforementioned code:
[_window makeKeyAndOrderFront:self]; // sheets act goofy if the parent
is minimized
This works--the sheet does goes away--but this means the parent window
will bounce up out of the dock without the end user expecting it... bad
human interface. Should I file a bug with Apple? Or am I doing
something wrong... ? Should I be waiting for the window to get
unminimized and deferring my sheet-hiding until then? The docs don't
talk about this, but it could just be a bug in AppKit I guess... most
people don't need to order out sheets when the parent window is
minimized, after all :)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.