How can I tell when all of the MainMenu nib controls (primarily the main window) have been loaded? I want to display a sheet on top of the main window at launch, but when I put call beginSheet inside of awakeFromNib, I get an error because no windows have been displayed yet: : kCGErrorIllegalArgument: _CGSFindSharedWindow: WID -1
How can this be fixed?