• 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: "Shawn Erickson" <email@hidden>
  • Date: Fri, 23 May 2008 14:07:13 -0700

On Fri, May 23, 2008 at 1:27 PM, Shawn Erickson <email@hidden> wrote:
> On Fri, May 23, 2008 at 11:49 AM, Johnny Lundy <email@hidden> wrote:

>> I can follow making a generic NSObject set to my custom class, but why
>> File's Owner?
>
> You do this so Interface Builder knows what class the owner of the nib
> will be so it can expose the correct outlets and actions when you
> attempt to make connections to/from the file's owner proxy object with
> other objects in the nib.

To be a little clearer the above is only at play when you are editing
with your nib using Interface Builder. The class you specific in
Interface Builder for the file's owner isn't a factor at runtime.

>> That's all well and good, but what exactly is this thing?
>
> It is a proxy object that allows objects instantiated in the nib to be
> connected with an object outside of the nib, in this case the object
> that has been specified as the owner of the nib when it was loaded.

Again this aspect is only a factor at runtime. The file's owner that
you see when editing a nib file is simply a graphical representation
of the object that will own the nib when the nib is loaded by your
application. It provides a way to make connections to objects in the
nib using control dragging and like.

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >File's Owner (From: Johnny Lundy <email@hidden>)
 >Re: File's Owner (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: NSTextView without word wrap?
  • Next by Date: Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)
  • Previous by thread: Re: File's Owner
  • Next by thread: Re: File's Owner
  • Index(es):
    • Date
    • Thread