Post marked as solved
Post marked as solved with 4 replies, 772 views
Hello,
I have a main window with a vertical split view. The NSSplitView has an NSOutlineView on the left and an empty space on the right. When the user clicks on a filename in the outline view, an NSTextView is created dynamically from a nib and displayed on the right side of the NSSplitView. The NSTextView controller also dynamically creates an NSRulerView in its viewDidLoad and adds the ruler to the NSTextView's NSScrollView.
Oddly, I've noticed that if I have the mouse pointer in the NSTextView's area and move it left into the NSRulerView's area, the pointer changes from an I-Beam to an arrow, as expected. If I move the mouse pointer from the NSOutlineView and to the right, over the NSSplitView divider and into the NSRulerView, the pointer immediately turns into an I-Beam when it reaches the NSRulerView.
I experimented a little bit with resetCursorRects with no luck. Anyone have any ideas how to get the expected behavior of the pointer to turning to an arrow when coming from the left... or even how to approach debugging this?
Thank you!