Having a problem understanding what I'm doing wrong here. I am calling a controller from within another controller and when I call 'configureSheet', I expect a sheet to drop down on the main window.
if (!configController) { configController = [[ConfigController alloc] init]; } [configController configureSheet:sender attachTo:mainWindow]; // Within ConfigController.m, I have … - (id) init { self = [super initWithWindowNibName:@"Configure"]; ... } - (void) configureSheet:(id) sender attachTo:(NSWindow *) mWindow { [NSApp beginSheet:configSheet modalForWindow:mWindow modalDelegate:self didEndSelector:nil contextInfo:nil]; } One thing I've noticed is that awakeFromNib in ConfigController.m never gets called. When it hits the 'NSApp beginSheet' line, the following error appears. 2009-11-10 12:50:16.428 test[78308:a0f] *** Assertion failure in -[NSApplication _commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelector:contextInfo:], /SourceCache/AppKit/AppKit-1038.11/AppKit.subproj/NSApplication.m:3100 2009-11-10 12:50:16.434 test[78308:a0f] HIToolbox: ignoring exception 'Modal session requires modal window' that raised inside Carbon event dispatch ( … Any help much appreciated. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com