Revision 919cb043 pithos-macos/PublicURLTransformer.m
b/pithos-macos/PublicURLTransformer.m | ||
---|---|---|
2 | 2 |
// PublicURLTransformer.m |
3 | 3 |
// pithos-macos |
4 | 4 |
// |
5 |
// Copyright 2011 GRNET S.A. All rights reserved. |
|
5 |
// Copyright 2011-2012 GRNET S.A. All rights reserved.
|
|
6 | 6 |
// |
7 | 7 |
// Redistribution and use in source and binary forms, with or |
8 | 8 |
// without modification, are permitted provided that the following |
... | ... | |
37 | 37 |
|
38 | 38 |
#import "PublicURLTransformer.h" |
39 | 39 |
#import "ASIPithosRequest.h" |
40 |
#import "ASIPithos.h" |
|
41 |
#import "pithos_macosAppDelegate.h" |
|
40 | 42 |
|
41 | 43 |
@implementation PublicURLTransformer |
42 | 44 |
|
... | ... | |
51 | 53 |
- (id)transformedValue:(id)value { |
52 | 54 |
if (value == nil) |
53 | 55 |
return nil; |
54 |
return [[ASIPithosRequest publicURLPrefix] stringByAppendingString:(NSString *)value]; |
|
56 |
return [[[(pithos_macosAppDelegate *)[[NSApplication sharedApplication] delegate] pithos] publicURLPrefix] |
|
57 |
stringByAppendingString:(NSString *)value]; |
|
55 | 58 |
} |
56 | 59 |
|
57 | 60 |
+ (void)initialize { |
Also available in: Unified diff