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

2008-07-15 Thread Erik Buck
Have a look at http://www.stepwise.com/Articles/2006/eb1/index.html ___ 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

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

2008-07-15 Thread Hamish Allan
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..., s

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

2008-07-15 Thread Scott Ribe
In the controller for the main window, I'd put an awakeFromNib: method that uses NSApplication's beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: method to display it as a sheet. Although if it's as simple as you described, I'd skip the nib & controller for the modal dialog, and

how to add modal dialog once application begin to run

2008-07-15 Thread 李国良
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