The challenge is quite easy, I think...but there is one really puzzling aspect.
The challenge reads
The method used in AppController is this.
In the AboutWindow.xib I hooked up File's owner's aboutWindow outlet to the NSPanel Object (after setting File's owner to AppController). One other issue was to set the target of MainMenu's "About NewApplication" to AppController's method "showPanel".
Now, this all works as expected. But...and this is the part I do not understand, if one comments out the outlet in Appcontroller AND severs the outlet in File's owner to the NSPanel Object, it **still** works, so I am left to ponder what role the IBOutlet plays in this setup?
Thanks in advance.
The challenge reads
{Emphasis is mine}Create a nib file with a custom About panel. Add an **outlet** to AppController to point the new window.
The method used in AppController is this.
Code:
-(IBAction) showPanel: (id) sender
{
BOOL successful = [NSBundle loadNibNamed: @"About" owner: self];
// More code here to check "successful"
}
In the AboutWindow.xib I hooked up File's owner's aboutWindow outlet to the NSPanel Object (after setting File's owner to AppController). One other issue was to set the target of MainMenu's "About NewApplication" to AppController's method "showPanel".
Now, this all works as expected. But...and this is the part I do not understand, if one comments out the outlet in Appcontroller AND severs the outlet in File's owner to the NSPanel Object, it **still** works, so I am left to ponder what role the IBOutlet plays in this setup?
Thanks in advance.