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 5969561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:14:53+00:00 2026-05-22T20:14:53+00:00

I have an scope bar containing a NSSearchField. The bar can be shown and

  • 0

I have an scope bar containing a NSSearchField. The bar can be shown and hidden using a menu item. I generate this bar by creating a new NSViewController (and loading a new view from the XIB). When the bar is shown, I do a addSubview: to the window’s contentView; when the bar is hidden, I do removeFromSuperview to the view within the view controller.

If when I launch the app and the bar is already opened, hitting tab toggles between the main view within the window (a table view) and the search field in the scope bar. If I launch the app and the bar isn’t already shown, once I do show the bar I can tab from the table view to the search field, but not the other way.

Once I remove the scope bar for the first time, then show it again, I can no longer tab between the search field and the table view, no matter which view is currently selected.

Is there something I need to be doing besides addSubview: and removeFromSuperview? I can’t wrap my head around why this won’t work, and especially why I get different behaviors if the bar is shown on launch or not.

  • 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-22T20:14:54+00:00Added an answer on May 22, 2026 at 8:14 pm

    I was able to get the desired behavior by setting setAutorecalculatesKeyViewLoop: to true on the views’ window.

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

Sidebar

Related Questions

I have function bar which I need to call. I'm new to using callbacks,
I have this scope: scope :user_id, :as => user do resources :boards, :controller =>
The scope of this is that we have three main projects. Some of the
I have: Foo foo = new Foo(); foreach (i; 0..10) { Bar bar =
Assume I have a named scope: class Foo < ActiveRecord::Base named_scope :bar, :conditions =>
I have a NodeSeq like this: <foo> <baz><bar key1=value1 key2=value2>foobar</bar></baz> Blah blah blah <bar
I have several views where I want the search bar to be hidden unless
I have a WinForm with a menu bar, a menu and a menuItem (called
I have a Javascript object literal: var Toolbar = { init: function(toolbar) { this.Bar
I have a database class with methods as shown below. Both foo and bar

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.