I am pulling down a plist from a URL using an NSURLConnection, which returns an NSData object. I would like to convert this to an NSArray. Can anyone help me?
I am
Use NSKeyedArchiver for archiving object to data.
NSKeyedUnarchiver for unarchiving object from data:
NSArray *object = [NSKeyedUnarchiver unarchiveObjectWithFile:self.receivedData];
Use +[NSPropertyListSerialization dataWithPropertyList:format:options:error:]
to convert the data, then check if the result -isKindOfClass:[NSArray class]
.