Sheet Question
Sheet Question
- Subject: Sheet Question
- From: "John Farmer" <email@hidden>
- Date: Tue, 20 May 2003 12:00:56 -0700
I am trying to create a sheet off of my main preference pane, to do this I
created a new window in my main nib file for the dialog. I have tried to open
the dialog with the following code:
- (IBAction)openInfoWindow:(id)sender {
[NSApp beginSheet: infoWindow
modalForWindow: [[self mainView] window]
modalDelegate: self
didEndSelector: NULL
contextInfo: nil];
}
I have also tried to use [NSApp mainWindow] in the modalForWindow parameter,
but whenever I push the button to open the window I keep getting this error:
*** Assertion failure in - [PreferenceApp
_commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelect
or:contextInfo:], AppKit.subproj/NSApplication.m:2524
Modal session requires modal window
Any help on this would be appreciated....
Thanks,
John Farmer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.