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: Laurent Daudelin <email@hidden>
- Date: Thu, 29 Jan 2004 20:44:54 -0500
on 29/01/04 20:14, John Stiles at email@hidden wrote:
>
On Jan 29, 2004, at 5:10 PM, John Stiles wrote:
>
>
>
> 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.
>
>
Hey Apple guys:
>
rdar://3544245
John,
I did experience similar weirdness under Jaguar whenever the user hides the
application or minimizes the parent window and here is what I came up with:
- (void)applicationDidBecomeActive:(NSNotification *)aNotification
{
if (! operationInProgress)
[self closeProgressSheetWindow];
}
- (void)windowDidDeminiaturize:(NSNotification *)aNotification
{
if (! operationInProgress)
[self closeProgressSheetWindow];
}
- (void)applicationDidUnhide:(NSNotification *)aNotification
{
if (! operationInProgress)
[self closeProgressSheetWindow];
else
[NSApp beginSheet:progressSheetWindow modalForWindow:fsWindow
modalDelegate:syncManager didEndSelector:nil contextInfo:nil];
}
However, I haven't checked if Panther did change something.
Hope this helps somewhat...
-Laurent.
--
============================================================================
Laurent Daudelin AIM/iChat: LaurentDaudelin <
http://nemesys.dyndns.org>
Logiciels Nemesys Software
mailto:email@hidden
feeping creature n.: [from feeping creaturism] An unnecessary feature; a bit
of chrome that, in the speaker's judgment, is the camel's nose for a whole
horde of new features.
_______________________________________________
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.