Hi,
Im new to cocoa development.
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.
Im able to create a custom window in a nib file and was also able to load the custom dialog on button click but it was not a modal dialog.im able to switch back to my main window.
MyWindowController is the nswindowscontroller subclass. i used the below code to display my window in the Button Event:
MyWindowController *pController = [[MyWindowController alloc]
initWithWindowNibName:@"nibfilename"];
[MyWindowController showWindow:self];
Kindly reply soon..... please let me knw if my requirement is not clear.
Thank You
Pradeep