can't get sheet to appear
can't get sheet to appear
- Subject: can't get sheet to appear
- From: SRD <email@hidden>
- Date: Tue, 10 Nov 2009 13:45:59 -0600
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 (email@hidden)
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:
This email sent to email@hidden