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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to