From 6251788ff71bfd9da23b4e504da423f10b858d83 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 27 May 2009 17:30:25 +0000 Subject: [Author: dmaclach] Fix for GTMMethodCheck under SnowLeopard so we don't get "Class __NSGenericDeallocHandler does not conform to @protocol(NSObject), so won't be checked" warnings. DELTA=1 (1 added, 0 deleted, 0 changed) R=thomasvl --- DebugUtils/GTMMethodCheck.m | 1 + 1 file changed, 1 insertion(+) (limited to 'DebugUtils') diff --git a/DebugUtils/GTMMethodCheck.m b/DebugUtils/GTMMethodCheck.m index 2f88dc3..a8c4ae3 100644 --- a/DebugUtils/GTMMethodCheck.m +++ b/DebugUtils/GTMMethodCheck.m @@ -44,6 +44,7 @@ static BOOL ConformsToNSObjectProtocol(Class cls) { // On iPhone we check Object as well if ((strncmp(className, "NS", 2) == 0) || (strncmp(className, "_NS", 3) == 0) + || (strncmp(className, "__NS", 4) == 0) || (strcmp(className, "CFObject") == 0) #if GTM_IPHONE_SDK || (strcmp(className, "Object") == 0) -- cgit v1.2.3