PDA

View Full Version : Dialog sheet




cpuin
Jun 19, 2013, 04:38 AM
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];


}