1
votes

I created a custom SplitView class that subclasses from NSSplitView. Everything looks right to me, and works fine, except the divider. For some reason it doesn't want to show up between my views of a SplitView.

Any kind of hint or help is highly appreciated!

here is my setup in the nib:

enter image description here

and here how it looks when I run it

enter image description here

interesting thing is, that when I move the mouse to the place where the divider should be, the cursor changes and I'm able to drag it...but for some reason it doesn't look right

1
What exactly are you trying to do? There are methods to change the style of the divider and also to pass a rect to be the new divider.trueinViso

1 Answers

1
votes

You can change the color of the divider using the 'drawDividerInRect:' function to change the color of the divider by passing your own rectangle. It is also possible you moved one of the custom views in the split view and can't see the divider anymore. You could try selecting the different views using the object hierarchy.

I've found that apple doesn't like to make it easy to modify a lot of their different views and controllers, probably because they are trying to maintain some uniformity in the apps that are run on their system.

Is the hidden check box checked?

enter image description here