Dialog sheet

Discussion in 'Mac Programming' started by cpuin, Jun 19, 2013.

  1. macrumors member

    Feb 3, 2013
    I have two xibs MainMenu and dialogSheet

    when opens dialog Sheets the focus still stay at the MainWindow.
    dialogSheet has a button for close which works, but the other controls can't get on focus.

    - (IBAction) showSheet:(NSWindow*)window
            if (!_clientsDialog)
                [NSBundle loadNibNamed: @"clientsDialog" owner: self];
                [NSApp beginSheet:self.clientsDialog
                   modalForWindow:[[NSApp delegate]window]
                    modalDelegate: self
                   didEndSelector: NULL
                      contextInfo: NULL];

Share This Page