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

Re: How to display simple dialog at application startup?


  • Subject: Re: How to display simple dialog at application startup?
  • From: Chris Idou <email@hidden>
  • Date: Wed, 3 Dec 2008 20:16:46 -0800 (PST)

Maybe you could launch your own untitled document, if that's what you need?

--- On Wed, 3/12/08, Sean McBride <email@hidden> wrote:

> From: Sean McBride <email@hidden>
> Subject: How to display simple dialog at application startup?
> To: email@hidden
> 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 (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


      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 (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

References: 
 >How to display simple dialog at application startup? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc
  • Next by Date: Re: Special Characters Edit Menu Item
  • Previous by thread: How to display simple dialog at application startup?
  • Next by thread: Re: How to display simple dialog at application startup?
  • Index(es):
    • Date
    • Thread