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

I have a piece of code that I don't understand. Can you answer it? Thank you! #37

Open
Ning-Wang opened this issue May 21, 2019 · 0 comments

Comments

@Ning-Wang
Copy link

//deprecated
SEL deprecatedSelector = NSSelectorFromString(@"codableKeys");
if ([self respondsToSelector:deprecatedSelector] || [self instancesRespondToSelector:deprecatedSelector])
{
NSLog(@"AutoCoding Warning: codableKeys method is no longer supported. Use codableProperties instead.");
}
deprecatedSelector = NSSelectorFromString(@"uncodableKeys");
if ([self respondsToSelector:deprecatedSelector] || [self instancesRespondToSelector:deprecatedSelector])
{
NSLog(@"AutoCoding Warning: uncodableKeys method is no longer supported. Use ivars, or synthesize your properties using non-KVC-compliant names to avoid coding them instead.");
}
deprecatedSelector = NSSelectorFromString(@"uncodableProperties");

codableKeys uncodableKeys uncodableProperties Where do these methods come from? Why do like This?
Thank you

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

No branches or pull requests

1 participant