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
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
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
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