Re: File's Owner
Re: File's Owner
- Subject: Re: File's Owner
- From: "Kyle Sluder" <email@hidden>
- Date: Sun, 25 May 2008 21:41:48 -0400
On Sun, May 25, 2008 at 4:14 PM, James Merkel <email@hidden> wrote:
> More to the subject at hand, I thought File's owner was just a mechanism for
> connecting nib objects to code. Nothing more or less. If I'm missing
> something, someone can correct me.
Pretty much. Any further significance is derived from the situation
in which it's used. For example, if you're using the default,
AppKit-provided NSWindowController in your document-based application,
the fact that the File's Owner is your NSDocument is an attribute of
the arrangement you're working with. But if you want to use your own
NSWindowController, often times you'll make the owner of the NIB the
NSWindowController itself, and if you need to get to the document you
can do so by going backwards through the NSWindowController subclass.
That might be why people are getting confused, actually. File's Owner
is just a slot, but it's always presented in a meaningful context, so
people start attaching meanings to the concept that are really
separate.
--Kyle Sluder
_______________________________________________
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