Revision: 15900
          http://sourceforge.net/p/skim-app/code/15900
Author:   hofman
Date:     2025-12-20 23:19:50 +0000 (Sat, 20 Dec 2025)
Log Message:
-----------
use dictionary literal

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2025-12-20 23:10:36 UTC (rev 15899)
+++ trunk/SKPDFView.m   2025-12-20 23:19:50 UTC (rev 15900)
@@ -382,10 +382,9 @@
                     NSRect rect = NSIntersectionRect([self 
convertRect:[annotation bounds] fromPage:page], visibleRect);
                     if (NSIsEmptyRect(rect) == NO) {
                         rect = [self convertRect:rect toView:docView];
-                        NSDictionary *userInfo = [[NSDictionary alloc] 
initWithObjectsAndKeys:annotation, SKAnnotationKey, nil];
                         if (mouseInView && NSMouseInRect(mouseLoc, rect, 
[docView isFlipped]))
                             hoverAnnotation = annotation;
-                        NSTrackingArea *area = [[NSTrackingArea alloc] 
initWithRect:rect options:options owner:self userInfo:userInfo];
+                        NSTrackingArea *area = [[NSTrackingArea alloc] 
initWithRect:rect options:options owner:self userInfo:@{SKAnnotationKey: 
annotation}];
                         [docView addTrackingArea:area];
                     }
                 }

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to