i can't figure out how to make my mainWindow (with a toolbar) to resize itself to my mainSheet (in other words, make the sheet fit perfectly inside the mainWindow's view)... i'm using setFrame:animate:display for the resize, but it's not taking into account that there's a toolbar on the mainWindow, so the resize is the same width of the mainSheet, but a little shorter:
please help...
Code:
[mainWindow setFrame:[mainSheet frame] display:YES animate:YES];
[NSApp mainSheet modalForWindow:mainWindow modalDelegate:nil didEndSelector:NULL contextInfo:NULL];
please help...