Maybe you could launch your own untitled document, if that's what you need?
--- On Wed, 3/12/08, Sean McBride <[EMAIL PROTECTED]> wrote: > From: Sean McBride <[EMAIL PROTECTED]> > Subject: How to display simple dialog at application startup? > To: cocoa-dev@lists.apple.com > Received: Wednesday, 3 December, 2008, 8:07 PM > 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 (Cocoa-dev@lists.apple.com) > > 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/idou747%40yahoo.com > > This email sent to [EMAIL PROTECTED] Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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]