a sheet in NSTabVIew

Discussion in 'Mac Programming' started by cpuin, Jul 6, 2013.

  1. cpuin macrumors member

    Feb 3, 2013
    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.

Share This Page