From 9b2f8e5f6f4992b7767d2aecc2716d23d297001b Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Fri, 16 Aug 2019 14:57:32 +0200 Subject: [PATCH] Using property --- MacPass/KPKEntry+MPCustomAttributeProperties.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacPass/KPKEntry+MPCustomAttributeProperties.m b/MacPass/KPKEntry+MPCustomAttributeProperties.m index 8e2eb37e..fabc6d6b 100644 --- a/MacPass/KPKEntry+MPCustomAttributeProperties.m +++ b/MacPass/KPKEntry+MPCustomAttributeProperties.m @@ -36,7 +36,7 @@ static id propertyIMP(id self, SEL _cmd) { + (BOOL)resolveInstanceMethod:(SEL)aSEL { if ([NSStringFromSelector(aSEL) hasPrefix:MPCustomAttributePropertyPrefix]) { - class_addMethod([self class], aSEL,(IMP)propertyIMP, "@@:"); + class_addMethod(self.class, aSEL,(IMP)propertyIMP, "@@:"); return YES; } return [super resolveInstanceMethod:aSEL];