• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to open a second window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to open a second window?
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: OmniFrameworks
  • Next by Date: Simple Control Help
  • Previous by thread: Re: WriteToFile:atomically: question
  • Next by thread: Re: How to open a second window?
  • Index(es):
    • Date
    • Thread