From 88aa13ece1160014be7d5a129ab461aca0616f4d Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Fri, 2 Oct 2009 15:33:31 -0400 Subject: [PATCH] Added a comment about what happens --- OTRestModelMapper.m | 1 + 1 file changed, 1 insertion(+) diff --git a/OTRestModelMapper.m b/OTRestModelMapper.m index a26ccec6..0000544c 100644 --- a/OTRestModelMapper.m +++ b/OTRestModelMapper.m @@ -104,6 +104,7 @@ // Comparison magic using function pointers. See this page for details: http://www.red-sweater.com/blog/320/abusing-objective-c-with-class // Original code courtesy of Greg Parker + // This is necessary because isEqualToNumber will return negative integer values that aren't coercable directly to BOOL's without help [sbw] BOOL (*ComparisonSender)(id, SEL, id) = (BOOL (*)(id, SEL, id)) objc_msgSend; BOOL areEqual = ComparisonSender(currentValue, comparisonSelector, propertyValue);