I need to create an modal dialog, which is to loaded from a nib file and should be displayed on a button click in the main window.
I can create a custom window in a nib
Thank you...
(Example). Create a nib with name "About"
if(pAbtCtrl == nil) pAbtCtrl = [[AboutWindowController alloc] initWithWindowNibName:@"About"]; pAbtWindow = [pAbtCtrl window]; [NSApp runModalForWindow: pAbtWindow]; [NSApp endSheet: pAbtWindow]; [pAbtWindow orderOut: self];