• 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 display simple dialog at application startup?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to display simple dialog at application startup?
      • From: Chris Idou <email@hidden>
  • Prev by Date: Re: How to make a RunLoop patiently do nothing?
  • Next by Date: Re: How to make a RunLoop patiently do nothing?
  • Previous by thread: Re: How to make a RunLoop patiently do nothing?
  • Next by thread: Re: How to display simple dialog at application startup?
  • Index(es):
    • Date
    • Thread