We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using NSPropertyListSerialization to create a mutable dictionary from a binary plist file and not using ARC, it does not return a mutable object.
Example:
// Load binary plist data NSData *binaryPlistData = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] URLForResource:@"Data" withExtension:@"plist"]]; // Create mutable dict from data NSMutableDictionary *d = (NSMutableDictionary *)[NSPropertyListSerialization propertyListFromData:binaryPlistData mutabilityOption:NSPropertyListMutableContainers format:NULL errorDescription:nil]; // Try to add object [d setObject:@"test" forKey:@"object"]; // Raises exception about not being mutable
Doing the same under ARC returns a mutable dictionary as expected.
The text was updated successfully, but these errors were encountered:
9bd82e3
No branches or pull requests
When using NSPropertyListSerialization to create a mutable dictionary from a binary plist file and not using ARC, it does not return a mutable object.
Example:
Doing the same under ARC returns a mutable dictionary as expected.
The text was updated successfully, but these errors were encountered: