Revision 7da4ebcc pithos-macos/PithosAccountNode.m

b/pithos-macos/PithosAccountNode.m
61 61
- (id)initWithPithos:(ASIPithos *)aPithos {
62 62
    if ((self = [super init])) {
63 63
        self.pithos = aPithos;
64
        self.childrenUpdatedNotificationName = [NSString stringWithString:@"PithosAccountNodeChildrenUpdated"];
64 65
    }
65 66
    return self;
66 67
}
......
242 243
            @synchronized(self) {
243 244
                freshness = PithosNodeStateRefreshFinished;
244 245
            }
245
            // Notify observers that children are updated
246
            [[NSNotificationCenter defaultCenter] postNotificationName:@"PithosAccountNodeChildrenUpdated" object:self];
246
            if (childrenUpdatedNotificationName) {
247
                // Notify observers that children are updated
248
                [[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self];
249
            }
247 250
        } else {
248 251
            [accountRequest release];
249 252
            // Do an additional request to fetch more objects
......
277 280
        @synchronized(self) {
278 281
            freshness = PithosNodeStateRefreshFinished;
279 282
        }
280
        // Notify observers that children are updated
281
        [[NSNotificationCenter defaultCenter] postNotificationName:@"PithosAccountNodeChildrenUpdated" object:self];
283
        if (childrenUpdatedNotificationName) {
284
            // Notify observers that children are updated
285
            [[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self];
286
        }
282 287
    } else {
283 288
        [self accountRequestFailed:accountRequest];
284 289
    }

Also available in: Unified diff