Revision 7da4ebcc pithos-macos/PithosContainerNode.m
b/pithos-macos/PithosContainerNode.m | ||
---|---|---|
67 | 67 |
self.pithosContainer = aPithosContainer; |
68 | 68 |
prefix = nil; |
69 | 69 |
self.icon = anIcon; |
70 |
childrenUpdatedNotificationName = @"PithosContainerNodeChildrenUpdated";
|
|
70 |
self.childrenUpdatedNotificationName = [NSString stringWithString:@"PithosContainerNodeChildrenUpdated"];
|
|
71 | 71 |
} |
72 | 72 |
return self; |
73 | 73 |
} |
... | ... | |
95 | 95 |
[applyMetadataContainerRequest release]; |
96 | 96 |
[policyQuota release]; |
97 | 97 |
[policyVersioning release]; |
98 |
[childrenUpdatedNotificationName release]; |
|
99 | 98 |
[prefix release]; |
100 | 99 |
[objects release]; |
101 | 100 |
[pithosContainer release]; |
... | ... | |
367 | 366 |
@synchronized(self) { |
368 | 367 |
freshness = PithosNodeStateRefreshFinished; |
369 | 368 |
} |
370 |
// Notify observers that children are updated |
|
371 |
[[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self]; |
|
369 |
if (childrenUpdatedNotificationName) { |
|
370 |
// Notify observers that children are updated |
|
371 |
[[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self]; |
|
372 |
} |
|
372 | 373 |
} else { |
373 | 374 |
[containerRequest release]; |
374 | 375 |
// Do an additional request to fetch more objects |
... | ... | |
407 | 408 |
@synchronized(self) { |
408 | 409 |
freshness = PithosNodeStateRefreshFinished; |
409 | 410 |
} |
410 |
// Notify observers that children are updated |
|
411 |
[[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self]; |
|
411 |
if (childrenUpdatedNotificationName) { |
|
412 |
// Notify observers that children are updated |
|
413 |
[[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self]; |
|
414 |
} |
|
412 | 415 |
} else { |
413 | 416 |
[self containerRequestFailed:containerRequest]; |
414 | 417 |
} |
Also available in: Unified diff