// // RBSplitView.m version 1.1.4 // RBSplitView // // Created by Rainer Brockerhoff on 24/09/2004. // Copyright 2004-2006 Rainer Brockerhoff. // Some Rights Reserved under the Creative Commons Attribution License, version 2.5, and/or the MIT License. // #import "RBSplitView.h" #import "RBSplitViewPrivateDefines.h" // Please don't remove this copyright notice! static const unsigned char RBSplitView_Copyright[] __attribute__ ((used)) = "RBSplitView 1.1.4 Copyright(c)2004-2006 by Rainer Brockerhoff ."; // This vector keeps currently used cursors. nil means the default cursor. static NSCursor* cursors[RBSVCursorTypeCount] = {nil}; // Our own fMIN and fMAX static inline float fMIN(float a,float b) { return ab?a:b; } @implementation RBSplitView // These class methods get and set the cursor used for each type. // Pass in nil to reset to the default cursor for that type. + (NSCursor*)cursor:(RBSVCursorType)type { if ((type>=0)&&(type=0)&&(type1)&&([[parts objectAtIndex:0] intValue]==subcount)&&(k==subcount)) { int i; NSRect frame = [self frame]; BOOL ishor = [self isHorizontal]; for (i=0;i