macOS 27.2: NSStatusItem tooltip s… | Apple Developer Forums
macOS 27.2: NSStatusItem tooltip stays on screen, then jumps to the pointer when toolTip changes UI Frameworks AppKit AppKit You’re now watching this thread. If you’ve opted in to email or web notifications, you’ll be notified when there’s activity. Click again to stop watching or visit your profile to manage watched threads and notifications. You’ve stopped watching this thread and will no longer receive emails or web notifications when there’s activity.
Click again to start watching. ngsiao OP Created 1w Replies 6 Boosts 0 Views 913 Participants 4 Environment: macOS Golden Gate 27.3 (26C5035r) arm64, Apple silicon, one display at 2240×1260 (scaled). Symptom. A tooltip window stays on screen at full opacity after the pointer has left. Sometimes it sits in the middle of the screen, far from the menu bar item it belongs to. Hovering or clicking that menu bar item clears it.
I've seen it with seven apps: Syncthing, DriveDx and Private Internet Access (menu bar items), and Google Chrome, Chrome Beta, Opera and iTerm2 (tooltips inside their windows). What I measured (polling CGWindowListCopyWindowInfo , plus sample ): The stuck window belongs to the app's own process, at window layer 103, alpha 1.0. The app is idle while it's stuck: its main thread is in mach_msg2_trap in 85–100% of samples.
In the Chrome and Opera samples the tooltip is handled by NSToolTipManager ( displayToolTip: , mouseEnteredToolTip:inWindow:pointInWindow: , fadeToolTip: ). Every tooltip is drawn 19–20 pt below where the pointer was when it was shown, so a mid-screen tooltip was shown while the pointer was there. Syncthing (open source) only sets statusItem.button.toolTip , on the main thread, when its status changes. It has no tracking areas or mouse handling of its own.
Reproducible part (Syncthing's menu bar item): Have its tooltip stuck. This happens on its own from time to time. I can't trigger it on demand. Leave the pointer anywhere away from the menu bar and change a file in a synced folder, so that Syncthing updates its status and sets a new toolTip . Result: the stuck tooltip window (same window number) moves to 19–20 pt below the current pointer position and stays there. It happened twice in a row, 25 seconds apart, at two different pointer positions.
Control: with nothing stuck, 9 such changes (some local, some synced in from another machine) showed no tooltip anywhere. Expected: a tooltip is only shown while the pointer is over its view, and a toolTip change while the pointer is elsewhere shows nothing. So setting toolTip doesn't show a tooltip on its own, it only moves one that is already stuck. I don't know what leaves it stuck in the first place. Possibly related: FB23329983 (status item buttons not getting hover events on macOS 27 betas, reported fixed in beta 5), from this thread .
Screenshots of sample tooltips attached. Replies 6 Boosts 0 Views 913 Participants 4 DTS Engineer OP Apple 1w Hello @ ngsiao , I would like to take a look at a minimal sample project that reproduces this issue. Are you able to attach this project to a Feedback Report filed by Feedback Assistant ? Once complete, reply with the FB number, I will make sure this report is routed to the relevant engineering team – they should be able to confirm if what we are seeing is a bug or expected.
Keep an eye out for updates provided through Feedback Assistant. Thank you, Travis Add comment 51ebrown OP 1w We have users experiencing the same issue on 27.2. Restarting fixes it temporarily. Seems to have be menu bar items that are what showing up for us. We have some users updating to 27.2.1 today to see if it fixes it. Add comment ngsiao OP 1w I don't know how to trigger the issue on demand, so don't know how to craft a sample project that reproduces it as soon as it's requested.
Add comment danrochman OP 1w I'm seeing the same thing here on macOS 27.2 (26B123) with the Syncthing (2.1.6-1) menu bar app. A two-line status tooltip ("Syncthing v2.1.6 / Up to date") stayed on screen above my other windows, and would periodically reappear below my mouse pointer. Clicking the Syncthing menu bar item dismissed it. Everything I've seen so far matches ngsiao's description, including the tooltip landing just below the mouse pointer.
Like ngsiao, I can't trigger it on demand, so I don't have a minimal sample project to attach. I've filed FB25538547 with the details. If/when it happens again, I'll run a fresh sysdiagnose and attach it there. Add comment ngsiao OP 4d I think the issue may be cause by some weid combination of movements over the menu bar and over any icon that has the ability to display a tooltip, maybe combined with some mouse clicks afterwards.
A nice test would be to leave the screen permanently on and the mouse completely still for a long period of time, and see if the tooltip appears in the middle of the screen eventually. Add comment DTS Engineer OP Apple 2d Thank you for the update @ ngsiao and for filing the feedback report @ danrochman . This report is currently under investigation. There's no workarounds shared yet – stay tuned for updates to be provided from Feedback Assistant.
Feel free to test against new software versions as they are released and provide more info here or in the report directly. The relevant engineering team investigating can respond directly to you in Feedback Assistant. I would stay tuned for updates there. I want to confirm these details: Is this for an app you are building or for a consumer level feature on macOS? Thank you, Travis Add comment