Using a Tab View Delegate

NSTabView defines delegate messages to allow the delegate to control or react to changes in selection and changes in the number of tabs: