Re: How to create a modal dialog that blocks on start-up?
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