Revision: 15173
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15173&view=rev
Author:   hofman
Date:     2009-04-24 11:38:41 +0000 (Fri, 24 Apr 2009)

Log Message:
-----------
use NSMouseInRect instead of NSPointInRect

Modified Paths:
--------------
    trunk/bibdesk/BDSKGroupOutlineView.m
    trunk/bibdesk/BDSKNotesWindowController.m
    trunk/bibdesk/BDSKRatingButtonCell.m
    trunk/bibdesk/BDSKSplitView.m
    trunk/bibdesk/BDSKStatusBar.m

Modified: trunk/bibdesk/BDSKGroupOutlineView.m
===================================================================
--- trunk/bibdesk/BDSKGroupOutlineView.m        2009-04-24 11:26:12 UTC (rev 
15172)
+++ trunk/bibdesk/BDSKGroupOutlineView.m        2009-04-24 11:38:41 UTC (rev 
15173)
@@ -133,7 +133,7 @@
             BDSKGroupCell *cell = [[[self tableColumns] objectAtIndex:0] 
dataCellForRow:row];
             if ([cell respondsToSelector:@selector(iconRectForBounds:)]) {
                 NSRect iconRect = [cell iconRectForBounds:[self 
frameOfCellAtColumn:column row:row]];
-                if (NSPointInRect(point, iconRect)) {
+                if (NSMouseInRect(point, iconRect, [self isFlipped])) {
                     if ([[self delegate] 
respondsToSelector:@selector(outlineView:doubleClickedOnIconOfItem:)])
                         [[self delegate] outlineView:self 
doubleClickedOnIconOfItem:[self itemAtRow:row]];
                     return;
@@ -338,7 +338,7 @@
        NSRect headerRect = [self headerRectOfColumn:colIndex];
     
        if ([cell isKindOfClass:[BDSKHeaderPopUpButtonCell class]]) {
-               if (NSPointInRect(location, [cell 
popUpRectForBounds:headerRect])) {
+               if (NSMouseInRect(location, [cell 
popUpRectForBounds:headerRect], [self isFlipped])) {
                        [cell trackMouse:theEvent 
                                          inRect:headerRect 
                                          ofView:self 
@@ -365,7 +365,7 @@
     BOOL onPopUp = NO;
                
        if ([cell isKindOfClass:[BDSKHeaderPopUpButtonCell class]] &&
-               NSPointInRect(location, [cell popUpRectForBounds:[self 
headerRectOfColumn:column]])) 
+               NSMouseInRect(location, [cell popUpRectForBounds:[self 
headerRectOfColumn:column]], [self isFlipped])) 
                onPopUp = YES;
                
        if ([delegate 
respondsToSelector:@selector(outlineView:menuForTableHeaderColumn:onPopUp:)]) {

Modified: trunk/bibdesk/BDSKNotesWindowController.m
===================================================================
--- trunk/bibdesk/BDSKNotesWindowController.m   2009-04-24 11:26:12 UTC (rev 
15172)
+++ trunk/bibdesk/BDSKNotesWindowController.m   2009-04-24 11:38:41 UTC (rev 
15173)
@@ -339,7 +339,7 @@
         if (row != -1 && [[self delegate] outlineView:self 
canResizeRowByItem:[self itemAtRow:row]]) {
             NSRect ignored, rect;
             NSDivideRect([self rectOfRow:row], &rect, &ignored, 5.0, [self 
isFlipped] ? NSMaxYEdge : NSMinYEdge);
-            if (NSPointInRect(mouseLoc, rect) && NSLeftMouseDragged == [[NSApp 
nextEventMatchingMask:(NSLeftMouseUpMask | NSLeftMouseDraggedMask) 
untilDate:[NSDate distantFuture] inMode:NSEventTrackingRunLoopMode dequeue:NO] 
type]) {
+            if (NSMouseInRect(mouseLoc, rect, [self isFlipped]) && 
NSLeftMouseDragged == [[NSApp nextEventMatchingMask:(NSLeftMouseUpMask | 
NSLeftMouseDraggedMask) untilDate:[NSDate distantFuture] 
inMode:NSEventTrackingRunLoopMode dequeue:NO] type]) {
                 [self resizeRow:row withEvent:theEvent];
                 return;
             }

Modified: trunk/bibdesk/BDSKRatingButtonCell.m
===================================================================
--- trunk/bibdesk/BDSKRatingButtonCell.m        2009-04-24 11:26:12 UTC (rev 
15172)
+++ trunk/bibdesk/BDSKRatingButtonCell.m        2009-04-24 11:38:41 UTC (rev 
15173)
@@ -173,7 +173,7 @@
        if (margin < border)
                margin = border;
        
-       if (!NSPointInRect(mouseLoc, buttonRect))
+       if (!NSMouseInRect(mouseLoc, buttonRect, [controlView isFlipped]))
                return NO;
        
        offset = mouseLoc.x - buttonRect.origin.x - margin;

Modified: trunk/bibdesk/BDSKSplitView.m
===================================================================
--- trunk/bibdesk/BDSKSplitView.m       2009-04-24 11:26:12 UTC (rev 15172)
+++ trunk/bibdesk/BDSKSplitView.m       2009-04-24 11:38:41 UTC (rev 15173)
@@ -160,7 +160,7 @@
             divRect.size.height = [self dividerThickness];
         }
         
-        if (NSPointInRect(mouseLoc, divRect)) {
+        if (NSMouseInRect(mouseLoc, divRect, [self isFlipped])) {
             inDivider = YES;
             break;
         }

Modified: trunk/bibdesk/BDSKStatusBar.m
===================================================================
--- trunk/bibdesk/BDSKStatusBar.m       2009-04-24 11:26:12 UTC (rev 15172)
+++ trunk/bibdesk/BDSKStatusBar.m       2009-04-24 11:38:41 UTC (rev 15173)
@@ -449,7 +449,7 @@
     NSDivideRect(rect, &ignored, &rect, RIGHT_MARGIN, NSMaxXEdge);
     if (progressIndicator) {
         NSDivideRect(rect, &childRect, &rect, NSWidth([progressIndicator 
frame]), NSMaxXEdge);
-        if (NSPointInRect(localPoint, childRect))
+        if (NSMouseInRect(localPoint, childRect, [self isFlipped]))
             return NSAccessibilityUnignoredAncestor(progressIndicator);
         NSDivideRect(rect, &ignored, &rect, MARGIN_BETWEEN_ITEMS, NSMaxXEdge);
        }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to