Re: Sheets/modal problem
Re: Sheets/modal problem
- Subject: Re: Sheets/modal problem
- From: kristin <email@hidden>
- Date: Mon, 25 Jun 2001 14:30:02 -0700
Hi Matt,
I'll look into this. I think the application-modality may be getting
confused by the presence of the sheet.
Kristin
On Saturday, June 23, 2001, at 05:35 AM, Matt Ridley wrote:
Hi again all,
I'm having a problem with a modal dialog and a sheet. The situation is
as
follows: I have a main window in my app, and the ability to open a modal
dialog in front of that main window. My modal dialog is a panel, and I
run
it modally with this code:
[myPanel makeKeyAndOrderFront:nil];
[NSApp runModalForWindow:myPanel];
[myPanel orderOut:nil];
Now, in certain circumstances, I need to display a sheet (an alert
sheet)
within my modal dialog. I do this using the function:
NSBeginAlertSheet(),
which is defined in the Functions section of the AppKit documentation.
All works as needed. However, when my alert sheet is displayed in my
modal
dialog, there are two unwanted effects:
- my modal dialog itself becomes visually disabled.
- my main window (behind the modal dialog) is no longer disabled!
I'm a lot more worried about the second effect. I need my main window to
remain disabled as long as my modal dialog is on screen, and this worked
fine up until I added the sheet. Whenever the sheet shows, the main
window
becomes accessible to the user again - which I definitely don't want.
Is there a way to achieve what I need - to keep the main window disabled
whilst showing the alert sheet on my modal dialog?
Thanks once again. Not sure what I'd do without this list. :-)
--
// Matt
- (void)contactMatt { // Contact Information ===============
if ([via email]) send = @" mailto:email@hidden ";
else if ([via wwweb]) goto = @" http://www.scotlandsoftware.com/ ";
} // ===================================
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev