Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obscure the true location of iCloud documents #1018

Merged
merged 1 commit into from Aug 9, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions Quicksilver/Code-QuickStepCore/QSObject_FileHandling.m
Expand Up @@ -189,10 +189,13 @@ - (NSString *)detailsOfObject:(QSObject *)object {
NSArray *theFiles = [object arrayForType:QSFilePathType];
if ([theFiles count] == 1) {
NSString *path = [theFiles lastObject];
if ([path hasPrefix:NSTemporaryDirectory()])
if ([path hasPrefix:NSTemporaryDirectory()]) {
return [@"(Quicksilver) " stringByAppendingPathComponent:[path lastPathComponent]];
else
} else if ([path hasPrefix:[@"~/Library/Mobile Documents/" stringByStandardizingPath]]) {
return @"iCloud";
} else {
return [path stringByAbbreviatingWithTildeInPath];
}
} else if ([theFiles count] >1) {
return [[theFiles arrayByPerformingSelector:@selector(lastPathComponent)] componentsJoinedByString:@", "];
}
Expand Down