Revision: 11412
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11412&view=rev
Author: amaxwell
Date: 2007-10-30 21:42:31 -0700 (Tue, 30 Oct 2007)
Log Message:
-----------
Restore workaround lost in my svn merge snafu.
Modified Paths:
--------------
branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKSplitView.m
Modified: branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKSplitView.m
===================================================================
--- branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKSplitView.m 2007-10-30
22:35:54 UTC (rev 11411)
+++ branches/TRY_ARM_FILE_INTERFACE/bibdesk/BDSKSplitView.m 2007-10-31
04:42:31 UTC (rev 11412)
@@ -132,4 +132,37 @@
drawEnd = flag;
}
[EMAIL PROTECTED]
\ No newline at end of file
+// arm: mouseDown: swallows mouseDragged: needlessly
+- (void)mouseDown:(NSEvent *)theEvent {
+ BOOL inDivider = NO;
+ NSPoint mouseLoc = [self convertPoint:[theEvent locationInWindow]
fromView:nil];
+ NSArray *subviews = [self subviews];
+ int i, count = [subviews count];
+ id view;
+ NSRect divRect;
+
+ for (i = 0; i < count - 1; i++) {
+ view = [subviews objectAtIndex:i];
+ divRect = [view frame];
+ if ([self isVertical]) {
+ divRect.origin.x = NSMaxX(divRect);
+ divRect.size.width = [self dividerThickness];
+ } else {
+ divRect.origin.y = NSMaxY(divRect);
+ divRect.size.height = [self dividerThickness];
+ }
+
+ if (NSPointInRect(mouseLoc, divRect)) {
+ inDivider = YES;
+ break;
+ }
+ }
+
+ if (inDivider)
+ [super mouseDown:theEvent];
+ else
+ [[self nextResponder] mouseDown:theEvent];
+}
+
+
[EMAIL PROTECTED]
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit