diff --git a/IMBFlickrNode.m b/IMBFlickrNode.m index b527e21f4..252f55421 100644 --- a/IMBFlickrNode.m +++ b/IMBFlickrNode.m @@ -315,7 +315,7 @@ - (NSArray*) extractPhotosFromFlickrResponse: (NSDictionary*) response context: NSMutableDictionary *metadata = [NSMutableDictionary dictionary]; [metadata addEntriesFromDictionary:photoDict]; // give metaData the whole thing! NSURL *webPageURL = [context photoWebPageURLFromDictionary:photoDict]; - [metadata setObject:webPageURL forKey:@"webPageURL"]; + [metadata setObject:[webPageURL absoluteString] forKey:@"webPageURL"]; NSURL *quickLookURL = [self imageURLForDesiredSize:kIMBFlickrSizeSpecifierMedium fromPhotoDict:photoDict context:context]; [metadata setObject:quickLookURL forKey:@"quickLookURL"]; diff --git a/IMBFlickrParser.m b/IMBFlickrParser.m index af70fe666..e3d85029f 100644 --- a/IMBFlickrParser.m +++ b/IMBFlickrParser.m @@ -164,8 +164,8 @@ - (IBAction) openFlickrPage: (id) sender { id obj = [sender representedObject]; if ([obj isKindOfClass:[IMBObject class]]) { IMBObject* imbObject = (IMBObject*) obj; - NSURL* webPage = [[imbObject metadata] objectForKey:@"webPageURL"]; - [[NSWorkspace imb_threadSafeWorkspace] openURL:webPage]; + NSString *webPage = [[imbObject metadata] objectForKey:@"webPageURL"]; + [[NSWorkspace imb_threadSafeWorkspace] openURL:[NSURL URLWithString:webPage]]; } else { NSLog (@"Can't handle this kind of object."); } @@ -178,12 +178,12 @@ - (IBAction) copyFlickrPageURL: (id) sender { id obj = [sender representedObject]; if ([obj isKindOfClass:[IMBObject class]]) { IMBObject* imbObject = (IMBObject*) obj; - NSURL* webPage = [[imbObject metadata] objectForKey:@"webPageURL"]; + NSString *webPage = [[imbObject metadata] objectForKey:@"webPageURL"]; NSPasteboard *pb = [NSPasteboard generalPasteboard]; NSArray *types = [NSArray arrayWithObjects:NSStringPboardType, nil]; [pb declareTypes:types owner:self]; - [pb setString:[webPage absoluteString] forType:NSStringPboardType]; + [pb setString:webPage forType:NSStringPboardType]; } else { NSLog (@"Can't handle this kind of object.");