How to display simple dialog at application startup?
How to display simple dialog at application startup?
- Subject: How to display simple dialog at application startup?
- From: "Sean McBride" <email@hidden>
- Date: Wed, 3 Dec 2008 23:07:08 -0500
Hi all,
From the 'should be easy department'... :)
I'd like my app to (sometimes) display a modal dialog at launch. It
should appear before anything else, and no other interaction should be
possible until it is dismissed. Something like the licence agreement
each new version of iTunes makes you accept...
So from applicationWillFinishLaunching:, I've tried NSAlert's runModal
and NSApplication's runModalForWindow. Both mostly work. But with the
latter, the initial untitled document never appears, and with the former
it appears before my dialog is dismissed.
My problem is, seemingly, with AppleEvents. The 'application open'
event is either being handled too early or is discarded.
Surely there is a clean way to achieve this?
Thanks,
Sean
_______________________________________________
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