• 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
Re: Modal Dialog from sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal Dialog from sheet


  • Subject: Re: Modal Dialog from sheet
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 21 Aug 2012 13:51:27 -0700

On Aug 21, 2012, at 04:28 , Graham Cox <email@hidden> wrote:

> I have a need to display a modal dialog from a document-modal sheet.
>
> I display the dialog OK but I can't dismiss it. I use [NSApp stopModalWithCode:<blah>] and I show the dialog using [NSApp runModalForWindow:<bleh>];
>
> I tried using a modal session but got the same outcome.
>
> What's the correct way to nest a modal dialog within a document-modal sheet?
>
> BTW, before there are howls of protest from the UI police,  there is precedence for this -  in the Save Panel, when it needs to prompt whether to replace a file or not. I'm trying to do something similar.

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?).

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.


_______________________________________________

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

  • Follow-Ups:
    • [SOLVED] Re: Modal Dialog from sheet
      • From: Graham Cox <email@hidden>
References: 
 >Modal Dialog from sheet (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Implementing Manual KVO For Bitfields Set in Atomic Operations
  • Next by Date: Re: NSSplitView crash upon restore from 10.8 Versions Browser
  • Previous by thread: Re: Modal Dialog from sheet
  • Next by thread: [SOLVED] Re: Modal Dialog from sheet
  • Index(es):
    • Date
    • Thread