[[myTabView selectedTabViewItem] setView:theView];
- (void)tabView:(NSTabView *)tabView willSelectTabViewItem:(NSTabViewItem *)tabViewItem
Yeah, personally I do that in D&D Manager (linked above) then I set the delegate of the tab view to my AppController file and use
Code:- (void)tabView:(NSTabView *)tabView willSelectTabViewItem:(NSTabViewItem *)tabViewItem
to resize the window depending on the size required.
Thanks for that Eraserhead, what you have in your application is what I am after so il follow your method.
Just from reading the documentation ?
no i don't using a document based application....
i revealed that mainWindow return NULL
why?
how can i get the mainWindow?
One last (should be obvious) thing. How do you get the button to remain highlighted once you have pressed it in the toolbar?
If you mean toolbar buttons that are selectable, you need to implement the toolbarSelectableItemIdentifiers: delegate method. See Selectable Toolbar Items.