Re: Sheets overstaying their welcome
Re: Sheets overstaying their welcome
- Subject: Re: Sheets overstaying their welcome
- From: John Stiles <email@hidden>
- Date: Wed, 15 Oct 2003 21:03:39 -0700
This happened to me too. It's like the app is blocked waiting for an
event, and the click "wakes it up" so then it realizes it's done with
being modal.
I'd love to know of a solution.
On Oct 15, 2003, at 7:48 PM, John Lombardo wrote:
Has anyone encountered the issue of a sheet not automatically
retracting
after doing the whole stopModal/endSheet/orderOut routine. Instead,
the user
has to interact in some way with the GUI before the sheet retracts.
After
some debugging, I've found this happens:
- (void)beginQuerySheet
{
/* ... stuff ... */
[NSApp runModalForWindow:[queryView querySheet]];
// I know that [NSApp stopModal] is being called in another
function...
// But this is where we sit until the user clicks something.
[NSApp endSheet:[queryView querySheet]];
[[queryView querySheet] orderOut:self];
}
I've tried forcing the window to close directly after the stopModal
message,
but even though that enables the controls on the main window, the
Close/Minimize/Zoom buttons are disabled.
I'm guessing there's some stuff about modal states that I don't know
about.
Cheers,
john
_______________________________________________
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.
_______________________________________________
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.