Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Parsing a .webloc file
- (NSURL *)URLFromWeblocFileData:(NSData *)data {
NSDictionary *dict = [NSPropertyListSerialization propertyListWithData:data
options:NSPropertyListImmutable
format:NULL
error:NULL];
NSString *urlString = dict[@"URL"];
return [NSURL URLWithString:urlString];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment