macOS10.14b7: Disappearing shared/static NSToolbar buttons

Originator:skyriser
Number:rdar://43246076 Date Originated:August 13 2018
Status:open Resolved:
Product:AppKit Product Version:
Classification: Reproducible:
 
Summary:

We are experiencing disappearing NSToolbar buttons in our application. I created a sample test app to help reproduce (included screenshot, executable, and project).

Steps to Reproduce:
1. Launch test app, it opens a window with 2 toolbar buttons.
2. Click on Test1 button, another window opens.
3. Notice on the first window, the Test1 button is now missing it's image.


Version/Build:

Reproduced on macOS10.14b6 and b7., and Xcode9.4 (latest production version, no betas).

Note:
1. Button Test1 is a "static" button (which is shared with other windows). Test2 button is local and is not shared. 
2. Moving the window that's missing a button to a second monitor "fixes" the missing button.
3. This problems happens with existing apps, compiled with a previous Xcode a while ago.

As a workaround, we could move our buttons to not be static, but that duplicate the buttons in memory.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!