macoscocoanstabview

Force NSTabView to load new instance of a tab on MacOS


In an NSTabViewController with a number of tabs, I didn't realize that by default when a tab is chosen, you are not given a new instance of the view. Is there a way to force a new instance of a view to be loaded all the time?


Solution

  • Ignoring why you would want to do this, you should be able to replace the view for a tab before that tab is displayed by