How to open a second window?
How to open a second window?
- Subject: How to open a second window?
- From: Lars Hoss <email@hidden>
- Date: Sat, 11 Aug 2001 02:46:19 +0200
Hi all!
Please apologize my stupid question but after searching for a longer
time I found no answer for my problem :(
I want to create a simple application that has a main window
and an information window. I have created a second nib file for the
information window.
This nib file contains both a NSPanel instance and a controller class
instance
(called InfoWindowController) which is derived from NSObject.
The controller class has an outlet called window which is connected to
the panel.
The controller class implements the method init:
-(id)init { ... [NSBundle loadNibNamed:@"InfoWindow" owner:self]; ... }
When the main controller creates an instance of InfoWindowController the
application
dies with a SIGSEGV 11.
To me it sounds wrong to create an instance of InfoWindowController in
the
nib file through Interface Builder because the main controller creates
an instance
as well. But I need the instance in IB because otherwise I do not
know how to connect the outlet window to the panel?
Thanks for your help in advance.
Yours,
Lars