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

  • Home
  • SEARCH
  • 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 6562399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:42:15+00:00 2026-05-25T13:42:15+00:00

I am building a preferences pane for an app where the user can add

  • 0

I am building a preferences pane for an app where the user can add a Web Service to a list (in a tableview on the left) and a form should appear on the right where the user can edit configuration options for the web service (like username or password or API key or tumblr blog name, etc.) I think I’ll need different views for different types of service (possibly with different logic for validation and so on).

My question is what is the best way to implement this?

What I’ve done: I have a NSSplitView with a NSTableView. I have an NSArrayController with it’s content bound to the appropriate key in NSUserDefaultsController and the NSTableView bound to it’s arrangedObjects and selectionIndexes. Next I’ve added a NSTabView in the right with it’s selectedIndex bound to the NSArrayController‘s selectedIndex and I’m trying to programatically insert the appropriate views (which I’ve created as separate custom views in IB) as tabs.

This seems to me to be a not the best approach. I also don’t know what to bind the fields in the detail views – is it even possible to use bindings here? How would you solve this problem?

  • 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-25T13:42:15+00:00Added an answer on May 25, 2026 at 1:42 pm

    Instead of the NSTabView, create a blank NSView for the inspector (inspectorView). Same idea, but a little simpler.

    In tableViewSelectionDidChange, write something like:

    newView = ...;
    
    if (inspectorView != [customInspectorView superview]) {
        NSView *oldView = [[inspectorView subviews] objectAtIndex:0];
        [inspectorView replaceSubview:oldView with:newView];
    }
    

    You can bind your fields to servicesArrayController.selection.username and so on.

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

Sidebar

Related Questions

I am building an app that can track weight. I allow the user to
Building a new ASP.net application, and planning to separate DB, 'service' tier and Web/UI
In building a custom ASP.MVC 3 Action Filter, how should I redirect the user
I'm building a small web app to sit within an existing Wordpress membership site.
Building a client-side swing application what should be notified on a bus (application-wide message
Building a new Mobile Web Platform for Mobile Users to purchase & download content
Building a Django app on a VPS. I am not very experienced with setting
I am building a page which allows our members to select their notification preferences
I'm building a calander app for Android in appcelerator, but now I'm having some
I am building a release version of my app using ant and proguard. The

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.