I'm trying to change the tab view when a button is clicked. I have this code:
- (IBAction)startScratch:(id)sender {
_mainTabBar.tabBarController.selectedIndex = 1;
//Error: ^ Property tabBarController not found on type "NSTabView*"
}
The .h file has these lines of code:
@property (weak) IBOutlet NSTabView *mainTabBar;
- (IBAction)startScratch:(id)sender;
I'm assuming I should replace _mainTabBar with something, but if so, what?