• 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
Re: NSWindowController confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController confusion


  • Subject: Re: NSWindowController confusion
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 14 May 2006 00:51:34 -0400

On May 14, 2006, at 12:11 AM, Ken Tozier wrote:

I'm loading a panel from a nib file using NSWindowController's initWithWindowNibName. If I call the method "showWindow", the panel appears on screen as expected but, even after this success, calling the controller's "window" method returns nil. How do I access the window the controller just opened if not through the "window" method?

In your nib, make sure the "File's Owner" custom class is NSWindowController. Once the class is right, the owner should have an outlet named "window" that you need to connect to your panel.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSWindowController confusion
      • From: Ken Tozier <email@hidden>
References: 
 >NSWindowController confusion (From: Ken Tozier <email@hidden>)

  • Prev by Date: NSWindowController confusion
  • Next by Date: Re: NSWindowController confusion
  • Previous by thread: NSWindowController confusion
  • Next by thread: Re: NSWindowController confusion
  • Index(es):
    • Date
    • Thread