You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method primitiveExtensibleProperties refers to an exception named NSInconsistentArchiveException which doesn't seem to exist on iOS SDK as of 7.1 – I recommend to use the string value instead on iOS, like so:
- (NSMutableDictionary *)primitiveExtensibleProperties;
{
// Fault in the properties on-demand
if (!_extensibleProperties)
{
@try {
_extensibleProperties = [[NSMutableDictionary alloc] initWithDictionary:self.archivedExtensibleProperties];
NSAssert(_extensibleProperties, @"-initWithDictionary: let me down");
}
@catch (NSException *exception) {
// Catch and handle the exception by resetting properties to be empty. But then rethrow
// the exception since the reset is only desirable if client code catches the exception
// itself and chooses to proceed.
#if TARGET_OS_IPHONE
if ([exception.name isEqualToString:@"NSInconsistentArchiveException"]) {
#else
if ([exception.name isEqualToString:NSInconsistentArchiveException]) {
#endif // TARGET_OS_IPHONE
NSLog(@"Resetting extensible properties after failure to unarchive: %@", self);
_extensibleProperties = [[NSMutableDictionary alloc] init];
}
@throw exception;
}
}
return _extensibleProperties;
}
The text was updated successfully, but these errors were encountered:
The method
primitiveExtensibleProperties
refers to an exception namedNSInconsistentArchiveException
which doesn't seem to exist on iOS SDK as of 7.1 – I recommend to use the string value instead on iOS, like so:The text was updated successfully, but these errors were encountered: