Pregunta

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.

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top