Re: how to add modal dialog once application begin to run
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