• 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: How to create a modal dialog that blocks on start-up?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a modal dialog that blocks on start-up?


  • Subject: Re: How to create a modal dialog that blocks on start-up?
  • From: Andy Lee <email@hidden>
  • Date: Fri, 06 Mar 2009 01:05:06 -0500

On Mar 5, 2009, at 11:21 PM, Graham Cox wrote:
My app needs to show an EULA on start-up (yes, I know, but what can you do?). Handling this is all fine, but I need the modal dialog that is shown to completely block the normal start-up of the app until it completes.

Right now I show the dialog using [NSApp runModalForWindow:] and I call that from the app delegate's appWillFinishLaunching method. The problem is the normal start-up of the app, including creating an untitled doc, etc. continues behind the dialog.

I do something similar, but I do the runModalForWindow: in the app delegate's awakeFromNib. If I move it to applicationWillFinishLaunching: I get the same problem you do. On the other hand, my app doesn't open documents, so this may not solve your problem.


--Andy


_______________________________________________

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: 
 >How to create a modal dialog that blocks on start-up? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: How to create a modal dialog that blocks on start-up?
  • Next by Date: Re: CoreData, SyncServices & NSURL ...
  • Previous by thread: Re: How to create a modal dialog that blocks on start-up?
  • Next by thread: NSView bottom part is cut off
  • Index(es):
    • Date
    • Thread