103 |
NSApplication *app = [NSApplication sharedApplication]; |
NSApplication *app = [NSApplication sharedApplication]; |
104 |
static NSRect oldRect; //only one can be dragged at a time |
static NSRect oldRect; //only one can be dragged at a time |
105 |
static BOOL lit = NO; |
static BOOL lit = NO; |
106 |
NSPoint p; |
NSPoint p, op; |
107 |
NSEvent *e; |
NSEvent *e; |
108 |
NSRect r, r1, bigRect, vis; |
NSRect r, r1, bigRect, vis; |
109 |
id v = nil, prev = nil; |
id v = nil, prev = nil; |
526 |
|
|
527 |
[self unlockFocus]; |
[self unlockFocus]; |
528 |
|
|
529 |
|
// Divider position hasn't changed don't try to resize subviews |
530 |
|
if (_isVertical == YES && p.x == op.x) |
531 |
|
{ |
532 |
|
[self setNeedsDisplay: YES]; |
533 |
|
return; |
534 |
|
} |
535 |
|
else if (p.y == op.y) |
536 |
|
{ |
537 |
|
[self setNeedsDisplay: YES]; |
538 |
|
return; |
539 |
|
} |
540 |
|
|
541 |
[nc postNotificationName: NSSplitViewWillResizeSubviewsNotification |
[nc postNotificationName: NSSplitViewWillResizeSubviewsNotification |
542 |
object: self]; |
object: self]; |
543 |
|
|