I created a simple app with NSToolbar.
I've made 3 icons binded to a method which must change the content of the main window:
My question is how to change the current content of the window with one from another xib file?
I've made 3 icons binded to a method which must change the content of the main window:
Code:
- (IBAction) setPanel:(id)sender
{
if ([sender tag]==0)
{
//set new document pannel
}
else if ([sender tag]==1)
{
//set new documents pannel
}
else if ([sender tag]==2)
{
//set new settings pannel
}
}
My question is how to change the current content of the window with one from another xib file?