• 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: File's Owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File's Owner


  • Subject: Re: File's Owner
  • From: Peter Sichel <email@hidden>
  • Date: Fri, 30 Nov 2001 16:23:19 -0500

At 12:30 PM -0800 11/30/01, John C. Randolph wrote:
On Friday, November 30, 2001, at 12:04 PM, email@hidden wrote:

In two cases I have not been able to figure out what "File's
Owner" does in the Interface Builder window.

The "File's Owner" is a stand-in for whatever object loads the
nib file. In the case of MainMenu.nib, this will typically be
the NSApplication instance.

-jcr

This seemingly undocumented detail becomes critical if you
subclass NSWindowController to manage windows in separate
nib files. You must make the "File's Owner" be the Window
controller by setting its custom class and connect your
window to it. Otherwise your NSWindowController subclass
will not connect properly to the window when the nib file
is loaded.

- Peter
--


  • Follow-Ups:
    • Re: File's Owner
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Re: File's Owner (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Number Formatting
  • Next by Date: Re: File's Owner
  • Previous by thread: Re: File's Owner
  • Next by thread: Re: File's Owner
  • Index(es):
    • Date
    • Thread