Alright I think I’m down to my last few questions. I apologize for bombarding this forum with such noobie questions…

My project has a NSTabView in it. I can’t seem to find a way reference to the active tab that I’m on. I need to know it so I can call a different handler based off of which tab the user is on. Can someone point me in the right direction?

Any help would be appreciated!

Thank you in advance!

Using selectedTabItem looks the go.

I could not find that method but found this one. Is this the one you were referring to?


Yes, thanks Craig. Got to remember to cut-and-paste…

Thanks guys for the help! I noticed that in IB there is a field called “identifier” for the tabs themselves, with 1 and 2 being the default names. Is there a way to call this? I would like to end up with something along the lines of if tab 1 is selected, then do handler #1 & if tab 2 then handler #2.

No kidding. How can we possibly remember all these method names! :smiley:


How did you go about finding it? If you got it from the documentation, which part was it?