macOS10.14b7: Disappearing shared/static NSToolbar buttons (radar #43246076)

Note, created radar #43246076.


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.


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.


Note: works fine in macOS10.13.4 and previous versions.


Anyone else experiencing this, or has more information?


Thanks!