I have A window with NSTAbView inside.
i have different xib files which loads in the view depending of the selection.
In one of this view i want to implement a modal sheet.
i make this:
Before make NSTabView it worked when the button was on the main window, not it crashes.
i have different xib files which loads in the view depending of the selection.
In one of this view i want to implement a modal sheet.
i make this:
Code:
- (IBAction) showSheet:(NSWindow*)window
{
// User has asked to see the dialog. Display it.
if (!self.clientsDialog)
[NSBundle loadNibNamed: @"clientsSheet" owner: self];
[NSApp beginSheet: self.clientsDialog
modalForWindow: [[NSApp delegate] window]
modalDelegate: self
didEndSelector: NULL
contextInfo: NULL];
}
Before make NSTabView it worked when the button was on the main window, not it crashes.