• 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 add modal dialog once application begin to run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to add modal dialog once application begin to run


  • Subject: Re: how to add modal dialog once application begin to run
  • From: "Hamish Allan" <email@hidden>
  • Date: Tue, 15 Jul 2008 13:50:32 +0100

On Tue, Jul 15, 2008 at 1:15 PM, 李国良 <email@hidden> wrote:

> the situation like this: when user launch the application, the main
> window open, before user click any button in the window, there is a modal
> dialog attached to the main window, warning any operation will be
> un-protected..., so how to implement it, i have new a cocoa application.
> maybe there is an initialization function for the application. i am a new
> cocoa programmer, i am very appreciated for your help. thanks.

The application's delegate (see
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_4.html)
is sent a message applicationDidFinishLaunching: when everything else
has been initialised -- you can launch your modal dialog from there.

Hamish
_______________________________________________

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 add modal dialog once application begin to run (From: "李国良" <email@hidden>)

  • Prev by Date: Re: Keypaths
  • Next by Date: Re: Detect/Disable Font Fallbacks in NSLayoutManager
  • Previous by thread: Re: how to add modal dialog once application begin to run
  • Next by thread: Re: how to add modal dialog once application begin to run
  • Index(es):
    • Date
    • Thread