Re: File's Owner
Re: File's Owner
- Subject: Re: File's Owner
- From: Andreas Mayer <email@hidden>
- Date: Sat, 24 May 2008 06:39:28 +0200
Am 24.05.2008 um 03:55 Uhr schrieb Erik Buck:
That is why File's owner exists! You just used File's Owner to make
a connection to an object outside the nib.
I thought, maybe a picture would help:
http://www.harmless.de/images/other/files_owner.png
On the left would be the scenario without a File's Owner proxy.
Note that, after loading the nib, there is no way to reach the newly
added objects from the old ones.
On the right you can see what purpose the File's Owner serves.
The outline indicates, that it is not a real object, but just a kind
of placeholder for one.
Now when an object - in this case NSApp - get's substituted for the
file's owner, it takes the pace of the former proxy object. The
outcome is, that you now *do* have a connection from the original
object graph to the newly added one.
Andreas
_______________________________________________
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