Question

I have a NSTabView with 3 tabs. I want to prevent the subviews of those tab from drawing until it is selected. How would I go about doing this? I have set up a delegate for the NSTabView but am having trouble figuring out which tab is selected.

Was it helpful?

Solution

I had similar problem(i had two views, view1 above view2 and view2's subviews were drawed while a i was dragging view1)
The way out was to make a tmpView,that contained all subviews and make [tmpView setHidden:YES]; if it wasn't an active view, and switch on visibility when view2 became active.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top