Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持对CoreData关系的映射和序列化,支持对映射和序列化的单独配置 #337

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

luhui
Copy link

@luhui luhui commented Feb 17, 2016

mj_setKeyValue:方法里,可变处理的转化好像没有发现在哪里用到,这个处理有什么意义吗?

// 不可变 -> 可变处理
            if (propertyClass == [NSMutableArray class] && [value isKindOfClass:[NSArray class]]) {
                value = [NSMutableArray arrayWithArray:value];
            } else if (propertyClass == [NSMutableDictionary class] && [value isKindOfClass:[NSDictionary class]]) {
                value = [NSMutableDictionary dictionaryWithDictionary:value];
            } else if (propertyClass == [NSMutableString class] && [value isKindOfClass:[NSString class]]) {
                value = [NSMutableString stringWithString:value];
            } else if (propertyClass == [NSMutableData class] && [value isKindOfClass:[NSData class]]) {
                value = [NSMutableData dataWithData:value];
            }

@wolfcon
Copy link
Collaborator

wolfcon commented May 8, 2019

请将白名单黑名单和 CoreData 扩展的功能分功能 PR . 不要混在一起

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants