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 19
19
20
20
@implementation NSObject (MJClass)
21
21
22
- + (NSMutableDictionary *)classDictForKey : (const void *)key
22
+ + (NSMutableDictionary *)mj_classDictForKey : (const void *)key
23
23
{
24
24
static NSMutableDictionary *allowedPropertyNamesDict;
25
25
static NSMutableDictionary *ignoredPropertyNamesDict;
@@ -141,18 +141,18 @@ + (void)mj_setupBlockReturnValue:(id (^)(void))block key:(const char *)key
141
141
// 清空数据
142
142
MJExtensionSemaphoreCreate
143
143
MJExtensionSemaphoreWait
144
- [[self classDictForKey : key] removeAllObjects ];
144
+ [[self mj_classDictForKey : key] removeAllObjects ];
145
145
MJExtensionSemaphoreSignal
146
146
}
147
147
148
148
+ (NSMutableArray *)mj_totalObjectsWithSelector : (SEL )selector key : (const char *)key
149
149
{
150
150
MJExtensionSemaphoreCreate
151
151
MJExtensionSemaphoreWait
152
- NSMutableArray *array = [self classDictForKey : key][NSStringFromClass (self )];
152
+ NSMutableArray *array = [self mj_classDictForKey : key][NSStringFromClass (self )];
153
153
if (array == nil ) {
154
154
// 创建、存储
155
- [self classDictForKey : key][NSStringFromClass (self )] = array = [NSMutableArray array ];
155
+ [self mj_classDictForKey : key][NSStringFromClass (self )] = array = [NSMutableArray array ];
156
156
157
157
if ([self respondsToSelector: selector]) {
158
158
#pragma clang diagnostic push
You can’t perform that action at this time.
0 commit comments