/* process results */
- result = [result objectForKey:@"fetch"];
+ result = [(NSDictionary *)result objectForKey:@"fetch"];
if ([result count] == 0) { /* did not find part */
[self errorWithFormat:@"did not find part: %@", _partId];
return nil;
}
fetch = [result objectAtIndex:0];
- if ((body = [fetch objectForKey:@"body"]) == nil) {
+ if ((body = [(NSDictionary *)fetch objectForKey:@"body"]) == nil) {
[self errorWithFormat:@"did not find body in response: %@", result];
return nil;
}
- if ((result = [body objectForKey:@"data"]) == nil) {
+ if ((result = [(NSDictionary *)body objectForKey:@"data"]) == nil) {
[self errorWithFormat:@"did not find data in body: %@", fetch];
return nil;
}
if ((result = [self cachedHierarchyResults]) != nil) {
NSString *p;
- result = [result objectForKey:@"list"];
+ result = [(NSDictionary *)result objectForKey:@"list"];
p = [_url path];
#if __APPLE__
/* normalized results already have the / in front on libFoundation?! */
if ([p hasPrefix:@"/"])
p = [p substringFromIndex:1];
#endif
- return ([result objectForKey:p] != nil) ? YES : NO;
+ return ([(NSDictionary *)result objectForKey:p] != nil) ? YES : NO;
}
/* check using IMAP4 select */