Re: Sheet Question
Re: Sheet Question
- Subject: Re: Sheet Question
- From: Theodore Petrosky <email@hidden>
- Date: Tue, 20 May 2003 15:39:59 -0700 (PDT)
More than likely, you have not wired up the interface
correctly in IB.
You need to check the docs and examine an example.
http://www.oreillynet.com/pub/ct/37
check here.
Ted
--- John Farmer <email@hidden> wrote:
>
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.
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
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.