Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB8732253: macOS 11 no longer preserves the order of menu bar apps (NSStatusBar items) #151

Closed
sindresorhus opened this issue Sep 23, 2020 · 2 comments

Comments

@sindresorhus
Copy link
Member

sindresorhus commented Sep 23, 2020

  • Date: 2020-09-23
  • Resolution: Fixed
  • Area: Menu Bar
  • OS: macOS 11 beta 8
  • Type: Incorrect/Unexpected Behavior

Description

The order of third-party menu bar items are no longer preserved on macOS 11. This is a huge regression and usability issue. Users want the menu bar items to be in the order they defined, but now every menu bar item just shows up at the left of existing menu bar items.

Steps to reproduce:

  1. Build and run the attached sample project.
  2. Command-drag the menu bar item to a different position.
  3. Quit the app
  4. Build and run it again.
  5. Notice how the menu bar position was not preserved.

Note that the menu bar position is correctly preserved if we set NSStatusItem#autosaveName, but according to the docs, this is not required and most apps don’t set it:

If you do not provide an autosave name for a status item, the system automatically chooses a unique name. - https://developer.apple.com/documentation/appkit/nsstatusitem/1644022-autosavename?changes=latest__9

Files

Sample project.zip

@MeneerRemspoor
Copy link

What a bummer, any idea if it will be compatible in the future?

@marnovo
Copy link

marnovo commented Dec 6, 2020

Apple Feedback
There are changes in the latest update, build 20C5048k, that may have resolved this issue.
You can see the software build your device is running and check for the latest update by clicking on the Apple logo in the upper left hand corner > About This Mac. If the build is not visible, click on the macOS version, e.g. 10.15.x, to reveal it.

Fixed on macOS 11.1 beta 1 (20C5048k) and continues fixed on beta 2 (20C5061b).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants