AutoCoding
AutoCoding copied to clipboard
AutoCoding is a category on NSObject that provides automatic support for NSCoding and NSCopying to every object.
…er method The initWithCoder method is missing a call to [self init], so I modified the initWithCoder function to adhere to the standard initializer template.
//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]...
It would be nice to see how to use this, especially objectWithContentsOfFile
I can't reproduce this on demand but quite frequently when unarchiving an object all its properties are nil (and they shouldn't be). Have you seen this?
Hi, as I can see, you are carefully fill tags and labels for issues in your repo. For such cases I create a [github_changelog_generator](https://github.com/skywinder/github-changelog-generator), that generate change log file based...
Hi, any suggestions to fix crash and swift usage. 1. Add on 'objectWithContentsOfFile' the 'nullable' flag to Swift optional compatibility. 2. Try|catch on 'unarchiveObjectWithData:'. Bellow the implementation of suggestions. ```objective-c...
please push a version : support for watchos
Not quite sure what's going on here. Unfortunately I can't reproduce the crash, and crashlytics is giving me incorrect line numbers so I can't see exactly where in code this...
I have a class in swift, with several vars (strings, arrays, ints and bools). Strings and arrays are coded and decoded well. Ints and bools are not.