• 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: "Sherm Pendley" <email@hidden>
  • Date: Sat, 24 May 2008 07:02:15 -0400

On Sat, May 24, 2008 at 6:49 AM, Paul Sargent <email@hidden> 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 (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: 
 >Re: File's Owner (From: Erik Buck <email@hidden>)
 >Re: File's Owner (From: Andreas Mayer <email@hidden>)
 >Re: File's Owner (From: Paul Sargent <email@hidden>)

  • Prev by Date: Re: Properties & GC (was Re: Cocoa et al as HCI usability problem)
  • Next by Date: Re: Accessing colours in NSColorPanel swatch
  • Previous by thread: Re: File's Owner
  • Next by thread: Re: File's Owner
  • Index(es):
    • Date
    • Thread