Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7619649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:44:25+00:00 2026-05-31T03:44:25+00:00

What is the recommended practice for creating tab view with multiple tabs. Should I

  • 0

What is the recommended practice for creating tab view with multiple tabs. Should I use single XIB file for all the views or have different XIB per views? my preference is to use multiple controllers for each view in the tab view and hence different xib files. How can I achieve it?
Is it possible to have multiple views in a single xib file for each tab view, each having different controllers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:44:26+00:00Added an answer on May 31, 2026 at 3:44 am

    Are the tabs always the same, or are they dynamic? If they’re always the same, I tend to use a single xib file, just because it’s easy. You can still use multiple controller objects — just make them subclasses of NSObject, and drop them all into the same xib.

    I did do a quick Google to see if there was an easy way to use NSViewControllers with tab views, and I found this thread. That contains some sample code for how to use them, which would give you a separate controller class and xib per tab. Obviously, I haven’t tried that code, so I can’t vouch for it, but it might be a good enough start. (In that sample code, it instantiates a new view controller each time you switch tabs, which probably isn’t what you want — if it were me, I’d instantiate them the first time a tab was swapped to, and then keep them in a dictionary in the window controller, and on subsequent switches then just pull out the respective view controller that already exists.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have heard that using exception trapping is not a recommended practice for number
Is it a recommended practice to raise all the events asynchronously if the class
What is the recommended practice? Should I add the my sub-folder under the fitnesse
Is it a recommended practice to do data lookup in route constraints, or should
What's the recommended practice regarding the using declaration (e.g using std::vector; )? Should it
In android, are using static variables a recommended practice? E.g, implementing a Singleton pattern
I understand that BigDecimal is recommended best practice for representing monetary values in Java.
Recommended by the ASP.NET team to use cache instead of session, we stopped using
What is the best and recommended practice regarding capitalization for naming controls in, for
(Unfortunately, this question is about a non-recommended practice. While I appreciate advise against doing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.