self.pithosContainer = aPithosContainer;
prefix = nil;
self.icon = anIcon;
- childrenUpdatedNotificationName = @"PithosContainerNodeChildrenUpdated";
+ self.childrenUpdatedNotificationName = [NSString stringWithString:@"PithosContainerNodeChildrenUpdated"];
}
return self;
}
[applyMetadataContainerRequest release];
[policyQuota release];
[policyVersioning release];
- [childrenUpdatedNotificationName release];
[prefix release];
[objects release];
[pithosContainer release];
@synchronized(self) {
freshness = PithosNodeStateRefreshFinished;
}
- // Notify observers that children are updated
- [[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self];
+ if (childrenUpdatedNotificationName) {
+ // Notify observers that children are updated
+ [[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self];
+ }
} else {
[containerRequest release];
// Do an additional request to fetch more objects
@synchronized(self) {
freshness = PithosNodeStateRefreshFinished;
}
- // Notify observers that children are updated
- [[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self];
+ if (childrenUpdatedNotificationName) {
+ // Notify observers that children are updated
+ [[NSNotificationCenter defaultCenter] postNotificationName:childrenUpdatedNotificationName object:self];
+ }
} else {
[self containerRequestFailed:containerRequest];
}