File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1919
2020@implementation NSObject (MJClass)
2121
22- + (NSMutableDictionary *)classDictForKey : (const void *)key
22+ + (NSMutableDictionary *)mj_classDictForKey : (const void *)key
2323{
2424 static NSMutableDictionary *allowedPropertyNamesDict;
2525 static NSMutableDictionary *ignoredPropertyNamesDict;
@@ -141,18 +141,18 @@ + (void)mj_setupBlockReturnValue:(id (^)(void))block key:(const char *)key
141141 // 清空数据
142142 MJExtensionSemaphoreCreate
143143 MJExtensionSemaphoreWait
144- [[self classDictForKey : key] removeAllObjects ];
144+ [[self mj_classDictForKey : key] removeAllObjects ];
145145 MJExtensionSemaphoreSignal
146146}
147147
148148+ (NSMutableArray *)mj_totalObjectsWithSelector : (SEL )selector key : (const char *)key
149149{
150150 MJExtensionSemaphoreCreate
151151 MJExtensionSemaphoreWait
152- NSMutableArray *array = [self classDictForKey : key][NSStringFromClass (self )];
152+ NSMutableArray *array = [self mj_classDictForKey : key][NSStringFromClass (self )];
153153 if (array == nil ) {
154154 // 创建、存储
155- [self classDictForKey : key][NSStringFromClass (self )] = array = [NSMutableArray array ];
155+ [self mj_classDictForKey : key][NSStringFromClass (self )] = array = [NSMutableArray array ];
156156
157157 if ([self respondsToSelector: selector]) {
158158#pragma clang diagnostic push
You can’t perform that action at this time.
0 commit comments