Re: Ordering out a sheet when its parent is hidden
Re: Ordering out a sheet when its parent is hidden
- Subject: Re: Ordering out a sheet when its parent is hidden
- From: John Stiles <email@hidden>
- Date: Thu, 29 Jan 2004 17:10:07 -0800
On Jan 29, 2004, at 4:55 PM, John Stiles wrote:
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 :)
Followup: didn't realize this at first, but AppKit is actually already
unminimizing the parent for me--so the fact that I am explicitly
calling:
[_window makeKeyAndOrderFront:self]; // sheets act goofy if the parent
is minimized
doesn't change the user experience any. It just makes the sheet go away
properly instead of hanging there. So I guess it's an OK solution after
all. And I should probably go ahead and file the bug...
Weird.
_______________________________________________
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.