Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cpuin

macrumors member
Original poster
Feb 3, 2013
77
0
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:

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.