Revision baaf1397 pithos-macos/PublicURLTransformer.m
b/pithos-macos/PublicURLTransformer.m | ||
---|---|---|
54 | 54 |
- (id)transformedValue:(id)value { |
55 | 55 |
if (value == nil) |
56 | 56 |
return nil; |
57 |
return [[[[(pithos_macosAppDelegate *)[[NSApplication sharedApplication] delegate] currentPithosAccount] pithos] publicURLPrefix] |
|
58 |
stringByAppendingString:(NSString *)value]; |
|
57 |
NSString *publicURLString = (NSString *)value; |
|
58 |
if ([publicURLString hasPrefix:@"https://"] || [publicURLString hasPrefix:@"http://"]) |
|
59 |
return publicURLString; |
|
60 |
return [[[[(pithos_macosAppDelegate *)[[NSApplication sharedApplication] delegate] currentPithosAccount] pithos] publicURLPrefix] |
|
61 |
stringByAppendingString:publicURLString]; |
|
59 | 62 |
} |
60 | 63 |
|
61 | 64 |
+ (void)initialize { |
Also available in: Unified diff