mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-22 17:39:24 +00:00
Using property
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user