• 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: IB3 Application vs File Owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: IB3 Application vs File Owner
      • From: Quincey Morris <email@hidden>
References: 
 >IB3 Application vs File Owner (From: Trygve Inda <email@hidden>)
 >Re: IB3 Application vs File Owner (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Post notification among several nib files?
  • Next by Date: Re: [NSTableView/NSOutlineView] How can we draw a custom border?
  • Previous by thread: Re: IB3 Application vs File Owner
  • Next by thread: Re: IB3 Application vs File Owner
  • Index(es):
    • Date
    • Thread