Skip to content

Commit

Permalink
Merge pull request #674 from wolfcon/master
Browse files Browse the repository at this point in the history
(amend)Change some function name that will be redundant with other SDK
  • Loading branch information
wolfcon committed Apr 2, 2019
2 parents 61c01ec + 3d459c2 commit 8e5c446
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MJExtension/NSObject+MJClass.m
Expand Up @@ -19,7 +19,7 @@

@implementation NSObject (MJClass)

+ (NSMutableDictionary *)classDictForKey:(const void *)key
+ (NSMutableDictionary *)mj_classDictForKey:(const void *)key
{
static NSMutableDictionary *allowedPropertyNamesDict;
static NSMutableDictionary *ignoredPropertyNamesDict;
Expand Down Expand Up @@ -141,18 +141,18 @@ + (void)mj_setupBlockReturnValue:(id (^)(void))block key:(const char *)key
// 清空数据
MJExtensionSemaphoreCreate
MJExtensionSemaphoreWait
[[self classDictForKey:key] removeAllObjects];
[[self mj_classDictForKey:key] removeAllObjects];
MJExtensionSemaphoreSignal
}

+ (NSMutableArray *)mj_totalObjectsWithSelector:(SEL)selector key:(const char *)key
{
MJExtensionSemaphoreCreate
MJExtensionSemaphoreWait
NSMutableArray *array = [self classDictForKey:key][NSStringFromClass(self)];
NSMutableArray *array = [self mj_classDictForKey:key][NSStringFromClass(self)];
if (array == nil) {
// 创建、存储
[self classDictForKey:key][NSStringFromClass(self)] = array = [NSMutableArray array];
[self mj_classDictForKey:key][NSStringFromClass(self)] = array = [NSMutableArray array];

if ([self respondsToSelector:selector]) {
#pragma clang diagnostic push
Expand Down

0 comments on commit 8e5c446

Please sign in to comment.