Calling you...
Calling you...
- Subject: Calling you...
- From: Riccardo Santato <email@hidden>
- Date: Sat, 26 Jan 2002 12:52:28 +0100
Hi everybody.
It's quite difficult to explain the problem I've got... let's try !
I've got two windows (let's call them "main_window" and "second_window")
and two classes (let's call them "first_class" and "second_class") in a
same .nib file. My goal is this:
pressing a button in the "first_window" will open "second_window"
I've tried this way: in the "first_class" I write
- (void) buttonAction:(id)sender+
{
Second_Class *mw;
mw=[[Second_Class alloc] init];
[mw openWindow];
}
while in the "second_class":
-(void)openWindow
{
[second_window makeKeyAndOrderFront:self];
[NSApp runModalForWindow:second_window];
}
I would add these: the outlets are rightly set, the "runModalForWindow"
tells me that "Modal session requires modal window" and the
"second_window" is not displayed. Why ? I've checked Gunnar source code
but it does the very same things as me.. Where's my error ?
Please excuse my poor programming technique.
--
Riccardo Santato
www.riccardosantato.com