Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read binary plist into NSDictionary

Is there simple way to parse the binary plist file into the NSDictionary representation? I am searching something like that:

NSString* strings = [NSString stringWithContentsOfURL: ... encoding: NSUnicodeStringEncoding error: ...];
NSMutableDictionary* pairs = (NSMutableDictionary*)[strings propertyListFromStringsFileFormat];

Using this code caused the exception while parsing the binary plist file.


1 Answers

Are you looking for [NSDictionary dictionaryWithContentsOfFile:]?

like image 51
tonklon Avatar answered Aug 31 '26 04:08

tonklon