From c494f8daf3d8abd20d329f7c2d82be3c042555ab Mon Sep 17 00:00:00 2001 From: Sam Soffes Date: Thu, 17 Nov 2011 10:44:12 -0800 Subject: [PATCH] Surpress "multiple methods named" error I realize that `collection` won't always be an NSArray, but the cast will let the compiler know to expect a NSUInteger return type instead of `size_t` which is also a return type a method named `count` inside of JSONKit. --- JSONKit.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JSONKit.m b/JSONKit.m index b9488b2..7ff7a1a 100644 --- a/JSONKit.m +++ b/JSONKit.m @@ -848,7 +848,7 @@ - (void)dealloc - (NSArray *)allObjects { NSParameterAssert(collection != NULL); - NSUInteger count = [collection count], atObject = 0UL; + NSUInteger count = [(NSArray *)collection count], atObject = 0UL; id objects[count]; while((objects[atObject] = [self nextObject]) != NULL) { NSParameterAssert(atObject < count); atObject++; }