• 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
Showing a window from a second nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Showing a window from a second nib


  • Subject: Showing a window from a second nib
  • From: Brian Luft <email@hidden>
  • Date: Sat, 05 Jan 2002 19:01:04 -0600

Greetings.

I'm attempting to load my About window from a second nib. The second nib is
called "About.nib" and contains my window and my custom class,
AboutController, as its file owner. The AboutController contains an outlet
to the window and a function called showWindow:. My showWindow function
loads the nib and displays the window in the following fashion:

[NSBundle loadNibNamed: @"About" owner: self];
[window center];
[window makeKeyAndOrderFront: self];

(window is the outlet). My loadNibNamed is returning YES, but my window
outlet is (null) and consequently the center and makeKeyAndOrderFront are
failing. I'm not seeing any errors in the console, either. Any ideas?

Thanks in advance. Brian


  • Follow-Ups:
    • Re: Showing a window from a second nib
      • From: email@hidden
  • Prev by Date: Re: Repost: NSFont userFontOfSize vs setUserFixedPitchFont
  • Next by Date: NSBrowser Implementation Question
  • Previous by thread: Re: Curly quotes don't work in Localizable.strings
  • Next by thread: Re: Showing a window from a second nib
  • Index(es):
    • Date
    • Thread