• 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: Circular initialization of controllers in NIB file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Circular initialization of controllers in NIB file


  • Subject: Re: Circular initialization of controllers in NIB file
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 3 Jan 2008 18:33:45 +0000

On 3 Jan 2008, at 18:16, Nathan Auch wrote:

Thus, the main window controller has an IBOutlet for a panel controller, and the panel controller has an IBOutlet for the main window controller. These are both assigned in Interface Builder. After loading the NIB file, the IBOutlet pointing to the main window controller from the panel controller is never set (value is nil). I think this must be because there is a circular dependency during initialization of the NIB file.

No, that's not the problem. Most likely you have chosen a name for your variable for which there is an unrelated -setSomeName: method; that method will be being called during initialisation, rather than just setting the variable directly.


Kind regards,

Alastair.

--
http://alastairs-place.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


  • Follow-Ups:
    • Re: Circular initialization of controllers in NIB file
      • From: Nathan Auch <email@hidden>
References: 
 >Circular initialization of controllers in NIB file (From: Nathan Auch <email@hidden>)

  • Prev by Date: Re: NSRulerView Fast Scrolling Issues
  • Next by Date: Re: NSRulerView Fast Scrolling Issues
  • Previous by thread: Circular initialization of controllers in NIB file
  • Next by thread: Re: Circular initialization of controllers in NIB file
  • Index(es):
    • Date
    • Thread