Changing a NSSplitViewItem's NSTitlebarSeparatorStyle does not update immediately

Originator:stevewindsurfing
Number:rdar://FB8877570 Date Originated:11.02.2021
Status:open Resolved:
Product:macOS Product Version:
Classification: Reproducible:yes
 
If you change the titlebarSeparatorStyle property of a NSSplitViewItem, the window does not update immediately. You have to set the focus to another app first for the window to update. Ans also then the window isn’t update correctly. For example the shadow never really gets applied. It works if you set the property in the storyboard. But if you want to change it programatically, it does not work as expected.


I would expect something like the Finder in Big Sur: If you display the content of a Finder window as symbols, there is no shadow or line below the toolbar. If you switch to another view (like column view) a line is being added and the toolbar becomes transparent.

I have added an example project to demonstrate the issue.


https://stackoverflow.com/questions/64644460/macos-11-changing-a-nssplitviewitems-nstitlebarseparatorstyle-does-not-update?noredirect=1#comment118124666_64644460

https://github.com/Iomegan/SplitViewItem-titlebarSeperator

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!