I'm trying to read in data from a plist, using this code:
NSString *error;
NSData * tempData = [[NSData alloc] initWithContentsOfFile:@"Data.plist"];
NSDictionary *temp = [NSPropertyListSerialization propertyListWithData:tempData options:NSPropertyListImmutable format:NSPropertyListXMLFormat_v1_0 error:&error];
It kicks out a warning/error stating:
"Incompatible integer to pointer conversion sending 'int' to parameter of type 'NSPropertyListFormat' (aka 'unsigned int *').
I've no idea what's going on. I chose the NSPropertyListXMLFormat_v1_0 from the code-hinting choices.
Also, I can't find the rationale for this in the documentation so far: why do you have to declare a pointer variable for "error", and then use "&error" as the argument for error:. What is the ampersand for?