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

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


  • Subject: How to create a modal dialog that blocks on start-up?
  • From: Graham Cox <email@hidden>
  • Date: Fri, 6 Mar 2009 15:21:07 +1100

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.

--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


  • Follow-Ups:
    • Re: How to create a modal dialog that blocks on start-up?
      • From: Andy Lee <email@hidden>
    • Re: How to create a modal dialog that blocks on start-up?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Path for writeToFile
  • Next by Date: Re: How to create a modal dialog that blocks on start-up?
  • Previous by thread: Re: More user agent questions
  • Next by thread: Re: How to create a modal dialog that blocks on start-up?
  • Index(es):
    • Date
    • Thread