I would like to make the divider of an NSSplitView
very thin, only 1px wide like Mail.app, Xcode.app, and many other Mac applications.
What is a good way to do this?
I have experimented with setting the divider style in Interface Builder as well as subclassing NSSplitView
to override -dividerThickness
, but the closest I have gotten is 2px, and this broke the divider functionality (I could no longer move the divider).
EDIT: I am aware of alternatives such as RBSplitView
and BWSplitView
, but I would like to use NSSplitView
if possible. Basically, how does Apple do it?