• 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 create a modal dialog that blocks on start-up?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a modal dialog that blocks on start-up?


  • Subject: Re: How to create a modal dialog that blocks on start-up?
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 6 Mar 2009 00:16:27 -0500

On Fri, Mar 6, 2009 at 12:01 AM, Graham Cox <email@hidden> wrote:
> The app might have been launched with a file or files, or just by
> double-clicking. So if the EULA needs to be displayed this should just defer
> opening the required documents. By stopping the untitled or other files from
> opening, they never do.

So what?  Implement the appropriate methods in your NSApp delegate, or
perhaps a custom subclass of NSDocumentController, and have them stow
any arguments and keep reminding themselves using
-performSelector:withObject:afterDelay: until conditions change such
that the original message can be processed as normal.

--Kyle Sluder
_______________________________________________

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 create a modal dialog that blocks on start-up?
      • From: "Jeff Laing" <email@hidden>
References: 
 >How to create a modal dialog that blocks on start-up? (From: Graham Cox <email@hidden>)
 >Re: How to create a modal dialog that blocks on start-up? (From: Kyle Sluder <email@hidden>)
 >Re: How to create a modal dialog that blocks on start-up? (From: Graham Cox <email@hidden>)
 >Re: How to create a modal dialog that blocks on start-up? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: mouseUp event for NSSlider
  • Next by Date: Re: [Q] NSObject's poseAsClass - Replacement?
  • Previous by thread: Re: How to create a modal dialog that blocks on start-up?
  • Next by thread: RE: How to create a modal dialog that blocks on start-up?
  • Index(es):
    • Date
    • Thread