• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[SOLVED] Re: Modal Dialog from sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

References: 
 >Modal Dialog from sheet (From: Graham Cox <email@hidden>)
 >Re: Modal Dialog from sheet (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSSplitView crash upon restore from 10.8 Versions Browser
  • Next by Date: Re: How to make Obj-C collection subscripting work on iOS 5?
  • Previous by thread: Re: Modal Dialog from sheet
  • Next by thread: Catching app-wide (system-wide) modifier keypress
  • Index(es):
    • Date
    • Thread