Re: IB3 Application vs File Owner
Re: IB3 Application vs File Owner
- Subject: Re: IB3 Application vs File Owner
- From: "Kyle Sluder" <email@hidden>
- Date: Sat, 8 Mar 2008 13:54:31 -0500
On Sat, Mar 8, 2008 at 11:27 AM, Quincey Morris
<email@hidden> wrote:
> In a main menu nib, Application and File's Owner will be placeholders
> for the same object. Interestingly, IB doesn't seem to be smart enough
> to realize that they must be the same object, so setting the outlets
> of one doesn't affect the other within IB. The IB documentation is
> silent on who wins at runtime in this situation.
IB doesn't know for sure that the file's owner of the main nib is in
fact the shared NSApplication instance. You could be doing some wonky
stuff instead. The only way that IB could possibly know is if it
performed static analysis. So rather than build a static analyzer
into IB, we can just live with two proxy icons.
Though it would definitely be nice to know who wins at runtime. File
a doc bug, perhaps? The worst that could happen is that this behavior
is an undefined implementation detail that they don't want to make
part of the public contract.
--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