@@ -251,6 +251,17 @@ - (void)mouseDown:(NSEvent*)theEvent
251
251
[self mouseUp: anUpOrDraggedEvent];
252
252
}
253
253
254
+ - (NSCursor *)cursorForCurrentPosition ;
255
+ {
256
+ if ([[self splitView ] dividerOrientation ] == KTSplitViewDividerOrientation_Horizontal)
257
+ {
258
+ return [NSCursor resizeUpDownCursor ];
259
+ }
260
+ else
261
+ {
262
+ return [NSCursor resizeLeftRightCursor ];
263
+ }
264
+ }
254
265
255
266
// ===========================================================
256
267
// - mouseDragged
@@ -281,7 +292,7 @@ To support split view handles (those generally in some sort of toolbar,
281
292
if ( aPoint >= aSplitViewBounds.origin .x
282
293
&& aPoint <= aSplitViewFrame.size .height -aDividerBounds.size .height )
283
294
{
284
- [[ NSCursor resizeUpDownCursor ] set ];
295
+ [self _setCursor: [ self cursorForCurrentPosition ] ];
285
296
NSRect aRect = aDividerFrame;
286
297
aPoint = [[self splitView ] dividerPositionForProposedPosition: aPoint];
287
298
[self setFrame: NSMakeRect (aRect.origin.x, aPoint,
@@ -294,7 +305,7 @@ To support split view handles (those generally in some sort of toolbar,
294
305
if ( aPoint >= aSplitViewBounds.origin .y
295
306
&& aPoint <= aSplitViewFrame.size .width -aDividerBounds.size .width )
296
307
{
297
- [[ NSCursor resizeLeftRightCursor ] set ];
308
+ [self _setCursor: [ self cursorForCurrentPosition ] ];
298
309
NSRect aRect = aDividerFrame;
299
310
aPoint = [[self splitView ] dividerPositionForProposedPosition: aPoint];
300
311
[self setFrame: NSMakeRect (aPoint, aRect.origin.y,
0 commit comments