[SOLVED] Re: Modal Dialog from sheet
[SOLVED] Re: Modal Dialog from sheet
- Subject: [SOLVED] Re: Modal Dialog from sheet
- From: Graham Cox <email@hidden>
- Date: Wed, 22 Aug 2012 08:35:12 +1000
On 22/08/2012, at 6:51 AM, Quincey Morris <email@hidden> wrote:
> Maybe you should show some code fragments. It's not clear whether the "modal dialog" is itself intended to be a sheet, since 'runModalForWindow:' is going to make it app-modal anyway, not document-modal (isn't it?).
Yes, the secondary dialog is app-modal, as is the case for the Save panel.
>
> Is it a sheet on the sheet in the Save panel case? Perhaps the Save panel does some more complex child window thing -- I notice that the "replace" sheet doesn't have the same kind of shadow at the top as the "Save" sheet does, but I don't know if that's significant.
I solved my issue. It turned out that the modal loop for the secondary dialog was being stopped correctly, but the panel itself was not removed from the screen. Turns out you have to do that 'orderOut' step yourself, even though -runModalForWindow: handles the 'orderIn' for you. I use app-modal dialogs so rarely these days (used to be very common in Mac OS 7/8/9) that this is the first time I think I've run into that problem.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden