In an app I'm making, I'm displaying an NSWindow as a sheet coming from another window.
I'm very simply calling it with
Code:
[NSApp beginSheet:theNewWindow modalForWindow:theExistingWindow modalDelegate:self didEndSelector:nil contextInfo:nil];
That works fine, the window appears as a sheet, the problem is, I cannot close it using
Code:
[theNewWindow performClose:self];
I have to use
Code:
[theNewWindow close];
Which then means I cannot show the window again!
I'm wondering what's the best way to display one NSWindow as a sheet in another NSWindow?
Thanks,
Tom