1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

ToolBar to change pannels

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

  1. macrumors member

    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:

    - (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

  3. macrumors member


Share This Page