Revision: 13995
          http://sourceforge.net/p/skim-app/code/13995
Author:   hofman
Date:     2023-12-26 10:11:19 +0000 (Tue, 26 Dec 2023)
Log Message:
-----------
type argument of enumeration block

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

Modified: trunk/PDFSelection_SKExtensions.m
===================================================================
--- trunk/PDFSelection_SKExtensions.m   2023-12-26 09:48:55 UTC (rev 13994)
+++ trunk/PDFSelection_SKExtensions.m   2023-12-26 10:11:19 UTC (rev 13995)
@@ -248,7 +248,7 @@
     NSUInteger length = [string length];
     __block NSRange range = NSMakeRange(0, 0);
     
-    [substrings enumerateObjectsUsingBlock:^(id substring, NSUInteger i, BOOL 
*stop) {
+    [substrings enumerateObjectsUsingBlock:^(NSString *substring, NSUInteger 
i, BOOL *stop) {
         NSRange searchRange = NSMakeRange(NSMaxRange(range), length - 
NSMaxRange(range));
         if ([substring length] == 0) {
             if (i == anIndex) {

Modified: trunk/SKColorMenuView.m
===================================================================
--- trunk/SKColorMenuView.m     2023-12-26 09:48:55 UTC (rev 13994)
+++ trunk/SKColorMenuView.m     2023-12-26 10:11:19 UTC (rev 13995)
@@ -165,7 +165,7 @@
     NSArray *children = [super accessibilityChildren];
     if ([children count] == 0) {
         NSMutableArray *array = [NSMutableArray array];
-        [colors enumerateObjectsUsingBlock:^(id color, NSUInteger i, BOOL 
*stop){
+        [colors enumerateObjectsUsingBlock:^(NSColor *color, NSUInteger i, 
BOOL *stop){
             NSRect rect = [self rectAtIndex:i];
             SKAccessibilityColorElement *element = 
[SKAccessibilityColorElement 
accessibilityElementWithRole:NSAccessibilityColorWellRole frame:[self 
convertRectToScreen:rect] label:[color accessibilityValue] parent:self];
             [element setAccessibilityFrameInParentSpace:rect];

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-12-26 09:48:55 UTC (rev 13994)
+++ trunk/SKMainWindowController.m      2023-12-26 10:11:19 UTC (rev 13995)
@@ -2866,7 +2866,7 @@
             [[[NSWorkspace sharedWorkspace] 
iconForFileType:NSFileTypeForHFSTypeCode(kLockedBadgeIcon)] drawInRect:rect 
fromRect:NSZeroRect operation:NSCompositingOperationSourceOver fraction:0.5];
         [pageImage unlockFocus];
         
-        [pageLabels enumerateObjectsUsingBlock:^(id label, NSUInteger i, BOOL 
*stop) {
+        [pageLabels enumerateObjectsUsingBlock:^(NSString *label, NSUInteger 
i, BOOL *stop) {
             SKThumbnail *thumbnail = [[SKThumbnail alloc] 
initWithImage:pageImage label:label pageIndex:i];
             [thumbnail setDirty:YES];
             [newThumbnails addObject:thumbnail];
@@ -2936,7 +2936,7 @@
                return;
        
        // Walk outline view looking for best firstpage number match.
-    [orderedNotes enumerateObjectsWithOptions:options usingBlock:^(id 
annotation, NSUInteger i, BOOL *stop) {
+    [orderedNotes enumerateObjectsWithOptions:options 
usingBlock:^(PDFAnnotation *annotation, NSUInteger i, BOOL *stop) {
                if ([annotation pageIndex] == pageIndex) {
             selAnnotation = annotation;
                        *stop = YES;

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