On Sat, May 24, 2008 at 6:49 AM, Paul Sargent <[EMAIL PROTECTED]> wrote:

>
> On 24 May 2008, at 05:39, Andreas Mayer wrote:
>
>>
>> I thought, maybe a picture would help:
>>
>> http://www.harmless.de/images/other/files_owner.png
>>
>
> Exactly the picture I was about to draw.
>
> Johnny Lundy wrote:
>
>> Saying it connects the nib to an object outside the nib sounds good, but
>> what object is that?
>>
>
> The object that loaded the NIB. What object is that? Whichever is passed
> when the NIB is loaded with [NSBundle loadNibNamed:owner:]
>
> e.g. NSApplication probably has code that looks like
>
> [NSBundle loadNibNamed:@"MainMenu" owner:self]
>
> You might have a piece of code that reads
>
> [NSBundle loadNibNamed:@"InspectorWindows" owner:inspectorController]


If your inspectorController is your own custom subclass of
NSWindowController, it will make itself the nib's owner if you create it
like this:

MyInspectorController* ic = [[MyInspectorController alloc] initWithNibName:@
"inspectorWindows"];

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to