FROM : Alastair Houghton
DATE : Thu Jan 03 19:33:45 2008
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
DATE : Thu Jan 03 19:33:45 2008
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 mail archive

