• 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
Difficulties with NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Difficulties with NSWindowController


  • Subject: Difficulties with NSWindowController
  • From: Rob Rix <email@hidden>
  • Date: Mon, 18 Jun 2001 21:46:02 -0400

Hi, all.
I'm implementing a non-document based GUI app. It's got a New command to allow you to open multiple windows. I have the New command connected to a custom object (MetaAppController) with the action newWindow:.
I have the window in a separate nib file to (I thought) facilitate having it open multiple times.

In newWindow:, I alloc an instance of NSWindowController, and use initWithWindowNibName: to have it load the appropriate nib file. Only difficulty is that although it appears to load the nib fine, it doesn't get the window properly. That is, [theController window] returns nil instead of the window from the nib file that theController loaded.

So, how do I remedy this?

Thanks for any help, sorry if I've been unclear at all,

-- Rob

Murphy strikes again!


  • Follow-Ups:
    • Re: Difficulties with NSWindowController
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: Choosing Files Based Upon Type
  • Next by Date: Object ownership question
  • Previous by thread: Re: NSOutlineView in Java
  • Next by thread: Re: Difficulties with NSWindowController
  • Index(es):
    • Date
    • Thread