Created
February 14, 2014 15:43
-
-
Save jmont/9003277 to your computer and use it in GitHub Desktop.
NSCoding mock implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)xxx_decoder:(NSCoder *)decoder decodeObjectOfClass:(Class)class forKey:(id)key { | |
id obj = [decoder decodeObjectForKey:key]; | |
if (![obj isKindOfClass:class]) { | |
return nil; | |
} | |
return obj; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment