PDA

View Full Version : a sheet in NSTabVIew




cpuin
Jul 6, 2013, 12:47 PM
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:

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