Revision 153edb5e

b/asi-http-request-with-pithos/Classes/Pithos/ASIPithos.h
48 48
    NSString *publicURLPrefix;
49 49
}
50 50

  
51
@property (retain) NSString *authURL;
52
@property (retain) NSString *authUser;
53
@property (retain) NSString *authKey;
51
@property (strong) NSString *authURL;
52
@property (strong) NSString *authUser;
53
@property (strong) NSString *authKey;
54 54

  
55
@property (retain) NSString *storageURLPrefix;
56
@property (retain, nonatomic) NSString *storageURL;
57
@property (retain) NSString *authToken;
55
@property (strong) NSString *storageURLPrefix;
56
@property (strong, nonatomic) NSString *storageURL;
57
@property (strong) NSString *authToken;
58 58

  
59
@property (retain) NSString *publicURLPrefix;
59
@property (strong) NSString *publicURLPrefix;
60 60

  
61 61
+ (id)pithos;
62 62

  
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithos.m
43 43
#pragma mark - Object Lifecycle
44 44

  
45 45
+ (id)pithos {
46
	ASIPithos *pithos = [[[self alloc] init] autorelease];
46
	ASIPithos *pithos = [[self alloc] init];
47 47
	return pithos;
48 48
}
49 49

  
......
52 52
            authURL, authUser, authKey, storageURLPrefix, storageURL, authToken, publicURLPrefix];
53 53
}
54 54

  
55
- (void) dealloc {
56
    [publicURLPrefix release];
57
    [authToken release];
58
    [storageURL release];
59
    [storageURLPrefix release];
60
    [authKey release];
61
    [authUser release];
62
    [authURL release];
63
    [super dealloc];
64
}
65 55

  
66 56
#pragma mark - Properties
67 57

  
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosAccount.h
47 47
    NSDate *lastModified;
48 48
}
49 49

  
50
@property (retain) NSString *name;
50
@property (strong) NSString *name;
51 51
@property (assign) NSUInteger containerCount;
52 52
@property (assign) NSUInteger bytesUsed;
53
@property (retain) NSDate *untilTimestamp;
54
@property (retain) NSMutableDictionary *groups;
55
@property (retain) NSMutableDictionary *policy;
56
@property (retain) NSMutableDictionary *metadata;
57
@property (retain) NSDate *lastModified;
53
@property (strong) NSDate *untilTimestamp;
54
@property (strong) NSMutableDictionary *groups;
55
@property (strong) NSMutableDictionary *policy;
56
@property (strong) NSMutableDictionary *metadata;
57
@property (strong) NSDate *lastModified;
58 58

  
59 59
+ (id)account;
60 60

  
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosAccount.m
40 40
@synthesize name, containerCount, bytesUsed, untilTimestamp, groups, policy, metadata, lastModified;
41 41

  
42 42
+ (id)account {
43
	ASIPithosAccount *account = [[[self alloc] init] autorelease];
43
	ASIPithosAccount *account = [[self alloc] init];
44 44
	return account;
45 45
}
46 46

  
......
49 49
            name, containerCount, bytesUsed, untilTimestamp, groups, policy, metadata, lastModified];
50 50
}
51 51

  
52
- (void) dealloc {
53
    [lastModified release];
54
    [metadata release];
55
    [policy release];
56
    [groups release];
57
    [untilTimestamp release];
58
	[name release];
59
	[super dealloc];
60
}
61 52

  
62 53
@end
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosContainer.h
49 49
    NSMutableArray *objectMeta;
50 50
}
51 51

  
52
@property (retain) NSString *name;
52
@property (strong) NSString *name;
53 53
@property (assign) NSUInteger count;
54 54
@property (assign) NSUInteger bytes;
55
@property (retain) NSDate *lastModified;
56
@property (retain) NSDate *untilTimestamp;
57
@property (retain) NSMutableDictionary *policy;
58
@property (retain) NSMutableDictionary *metadata;
55
@property (strong) NSDate *lastModified;
56
@property (strong) NSDate *untilTimestamp;
57
@property (strong) NSMutableDictionary *policy;
58
@property (strong) NSMutableDictionary *metadata;
59 59
@property (assign) NSUInteger blockSize;
60
@property (retain) NSString *blockHash;
61
@property (retain) NSMutableArray *objectMeta;
60
@property (strong) NSString *blockHash;
61
@property (strong) NSMutableArray *objectMeta;
62 62

  
63 63
+ (id)container;
64 64

  
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosContainer.m
41 41
@synthesize blockSize, blockHash, objectMeta;
42 42

  
43 43
+ (id)container {
44
	ASIPithosContainer *container = [[[self alloc] init] autorelease];
44
	ASIPithosContainer *container = [[self alloc] init];
45 45
	return container;
46 46
}
47 47

  
......
50 50
            name, count, bytes, lastModified, untilTimestamp, policy, metadata, blockSize, blockHash, objectMeta];
51 51
}
52 52

  
53
-(void) dealloc {
54
    [objectMeta release];
55
    [blockHash release];
56
    [metadata release];
57
    [policy release];
58
    [untilTimestamp release];
59
    [lastModified release];
60
	[name release];
61
	[super dealloc];
62
}
63 53

  
64 54
@end
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosObject.h
63 63

  
64 64
@property (assign) BOOL subdir;
65 65

  
66
@property (retain) NSString *name;
67
@property (retain) NSString *hash;
68
@property (retain) NSString *objectHash;
69
@property (retain) NSString *UUID;
66
@property (strong) NSString *name;
67
@property (strong) NSString *hash;
68
@property (strong) NSString *objectHash;
69
@property (strong) NSString *UUID;
70 70
@property (assign) NSUInteger bytes;
71
@property (retain) NSString *contentType;
72
@property (retain) NSString *contentEncoding;
73
@property (retain) NSString *contentDisposition;
74
@property (retain) NSDate *lastModified;
75
@property (retain) NSString *version;
76
@property (retain) NSDate *versionTimestamp;
77
@property (retain) NSString *modifiedBy;
78
@property (retain) NSString *manifest;
79
@property (retain) NSString *sharing;
80
@property (retain) NSString *sharedBy;
81
@property (retain) NSString *publicURI;
82
@property (retain) NSMutableDictionary *metadata;
83
@property (retain) NSString *allowedTo;
84
@property (retain) NSData *data;
71
@property (strong) NSString *contentType;
72
@property (strong) NSString *contentEncoding;
73
@property (strong) NSString *contentDisposition;
74
@property (strong) NSDate *lastModified;
75
@property (strong) NSString *version;
76
@property (strong) NSDate *versionTimestamp;
77
@property (strong) NSString *modifiedBy;
78
@property (strong) NSString *manifest;
79
@property (strong) NSString *sharing;
80
@property (strong) NSString *sharedBy;
81
@property (strong) NSString *publicURI;
82
@property (strong) NSMutableDictionary *metadata;
83
@property (strong) NSString *allowedTo;
84
@property (strong) NSData *data;
85 85

  
86 86
+ (id)object;
87 87
+ (id)subdirWithName:(NSString *)name;
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosObject.m
43 43
data;
44 44

  
45 45
+ (id)object {
46
	ASIPithosObject *object = [[[self alloc] init] autorelease];
46
	ASIPithosObject *object = [[self alloc] init];
47 47
    object.subdir = NO;
48 48
	return object;
49 49
}
50 50

  
51 51
+ (id)subdirWithName:(NSString *)name {
52
	ASIPithosObject *object = [[[self alloc] init] autorelease];
52
	ASIPithosObject *object = [[self alloc] init];
53 53
    object.subdir = YES;
54 54
    object.name = name;
55 55
	return object;
......
62 62
            name, hash, objectHash, UUID, bytes, contentType, contentEncoding, contentDisposition, lastModified, version, versionTimestamp, modifiedBy, manifest, sharing, sharedBy, publicURI, metadata, allowedTo];
63 63
}
64 64

  
65
-(void) dealloc {
66
    [data release];
67
    [allowedTo release];
68
    [metadata release];
69
    [publicURI release];
70
    [sharedBy release];
71
    [sharing release];
72
    [manifest release];
73
    [modifiedBy release];
74
    [versionTimestamp release];
75
    [version release];
76
    [lastModified release];
77
    [contentDisposition release];
78
    [contentEncoding release];
79
    [contentType release];
80
    [UUID release];
81
    [objectHash release];
82
    [hash release];
83
	[name release];
84
	[super dealloc];
85
}
86 65

  
87 66
@end

Also available in: Unified diff