On Tue, Jul 15, 2008 at 1:15 PM, 李国良 <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]