![]() ![]() Enables requiresSecureCoding and sets the decodingFailurePolicy to NSDecodingFailurePolicySetErrorAndReturn. It says "Decodes the root object of the given class from the given archive, previously encoded by NSKeyedArchiver. My best guess is that this may be caused by what's here in the method description:įor some reason it appears the image isn't loading. Ĭookies is a class with 2 properties: one is an enum instance (backed by NSInteger) and the other is a Set of NSStrings Here's my call to 'unarchivedObjectOfClasses:fromData:error:': What I found especially odd was that I couldn't trigger the object's implemention of the - (void) encodeWithCoder:(NSCoder *) aCoder method from the NSCoding protocol the log statement I placed there wasn't triggered. However, when I attempted to replace calls to + with calls to +, there was no error and the call returned nil. I managed to replace calls to + with calls to +, passing false for requiringSecureCoding and verified that my object is successfully encoding. I'm trying to implement these calls on an object that conforms to the NSCoding protocol, not the NSSecureCoding protocol. ![]() I'm trying to replace my method calls to NSKeyedArchiver and NSKeyedUnarchiver that were recently deprecated in the most recent iOS SDK. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |