adium 2704:94ffd2caa8d1: Adding spotlight grease.
commits at adium.im
commits at adium.im
Sat Sep 12 01:14:10 UTC 2009
details: http://hg.adium.im/adium/rev/94ffd2caa8d1
revision: 2704:94ffd2caa8d1
author: Stephen Holt <sholt at adium.im>
date: Fri Sep 11 21:13:55 2009 -0400
Adding spotlight grease.
diffs (19 lines):
diff -r 060e69d2a592 -r 94ffd2caa8d1 Other/Adium Spotlight Importer/GetMetadataForFile.m
--- a/Other/Adium Spotlight Importer/GetMetadataForFile.m Fri Sep 11 19:45:01 2009 -0400
+++ b/Other/Adium Spotlight Importer/GetMetadataForFile.m Fri Sep 11 21:13:55 2009 -0400
@@ -131,10 +131,11 @@
NSXMLDocument *xmlDoc;
NSError *err=nil;
NSURL *furl = [NSURL fileURLWithPath:(NSString *)pathToFile];
- xmlDoc = [[NSXMLDocument alloc] initWithContentsOfURL:furl
- options:NSXMLNodePreserveCDATA
- error:&err];
-
+ NSData *data = [NSData dataWithContentsOfURL:furl options:NSUncachedRead error:&err];
+ if (data) {
+ xmlDoc = [[NSXMLDocument alloc] initWithData:data options:NSXMLNodePreserveCDATA error:&err];
+ }
+
if (xmlDoc)
{
NSArray *senderNodes = [xmlDoc nodesForXPath:@"//message/@sender"
More information about the commits
mailing list