Revision: 16202
          http://sourceforge.net/p/skim-app/code/16202
Author:   hofman
Date:     2026-05-02 18:11:39 +0000 (Sat, 02 May 2026)
Log Message:
-----------
use dictionary literal

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

Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m   2026-05-02 17:53:23 UTC (rev 16201)
+++ trunk/PDFSelection_SKExtensions.m   2026-05-02 18:11:39 UTC (rev 16202)
@@ -127,7 +127,7 @@
        NSString *ellipse = [NSString stringWithFormat:@"%C", 
ELLIPSIS_CHARACTER];
        NSRange foundRange;
     CGFloat fontSize = [[NSUserDefaults standardUserDefaults] 
doubleForKey:SKTableFontSizeKey] - 2.0;
-    NSDictionary *attributes = [[NSDictionary alloc] 
initWithObjectsAndKeys:[NSFont systemFontOfSize:fontSize], NSFontAttributeName, 
[NSParagraphStyle defaultWrappingParagraphStyle], 
NSParagraphStyleAttributeName, nil];
+    NSDictionary *attributes = @{NSFontAttributeName: [NSFont 
systemFontOfSize:fontSize], NSParagraphStyleAttributeName: [NSParagraphStyle 
defaultWrappingParagraphStyle]};
     PDFPage *page = [self safeFirstPage];
     NSString *pageString = [page string];
     NSUInteger length = [pageString length];

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