ToolBar to change pannels

Discussion in 'Mac Programming' started by cpuin, Jun 20, 2013.

  1. macrumors member

    Joined:
    Feb 3, 2013
    #1
    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?
     
  2. macrumors 603

    Joined:
    Aug 9, 2009
    #2
  3. thread starter macrumors member

    Joined:
    Feb 3, 2013
    #3

Share This Page