From eea6cd4dffdab22efc50fa9ad56c1cd79b37d2b5 Mon Sep 17 00:00:00 2001 From: Brian Croom and Li Tai Date: Thu, 12 May 2016 11:18:31 -0400 Subject: [PATCH] Use string comparison instead of pointer comparison within the has property method of BSPropertySet --- Source/BSPropertySet.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/BSPropertySet.m b/Source/BSPropertySet.m index 1ec0b52..3c1368f 100644 --- a/Source/BSPropertySet.m +++ b/Source/BSPropertySet.m @@ -59,7 +59,7 @@ - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state object - (BOOL)hasProperty:(BSProperty *)property { for (BSProperty *myProperty in self.properties) { - if (myProperty.propertyNameString == property.propertyNameString) { + if ([myProperty.propertyNameString isEqualToString:property.propertyNameString]) { return YES; } }