Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cpuin

macrumors member
Original poster
Feb 3, 2013
77
0
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:

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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.