[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #32621] enumerateObjectsUsingBlock: produces strange log

From: Tom Davie
Subject: [bug #32621] enumerateObjectsUsingBlock: produces strange log
Date: Mon, 28 Feb 2011 11:26:00 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_6) AppleWebKit/534.22+ (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4


                 Summary: enumerateObjectsUsingBlock: produces strange log
                 Project: GNUstep
            Submitted by: beelsebob2
            Submitted on: Mon 28 Feb 2011 11:25:59 AM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



Using the block enumeration methods in NSArray (and my new one for NSSet)
causes an odd log to appear in the output, but otherwise does not have any
adverse effect:

~/Documents/Test$ ./obj/Test
Calling [GSInlineArray -enumerateObjectsUsingBlock:] with incorrect signature.
 Method has address@hidden:8^{?=^vii^?}16, selector has 
2011-02-28 11:04:51.802 Test[25104] 0 - a
2011-02-28 11:04:51.805 Test[25104] 1 - b
2011-02-28 11:04:51.805 Test[25104] 2 - c
address@hidden:~/Documents/Test$ cat Test.m
#import <Foundation/Foundation.h>

int main(int argc, char **argv)
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    NSArray *array = [NSArray arrayWithObjects:@"a", @"b", @"c", nil];
    [array enumerateObjectsUsingBlock:^ void (id obj, NSUInteger idx, BOOL
         NSLog(@"%lu - %@", idx, obj);
    [pool drain];
    return 0;


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]