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

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