Hi,
This is the code of my initializer:
if (self = [super init]) {
self.title = @"Posts";
self.variableHeightRows = YES;
//XLog("");
PostsDataSource *dataSource = [[[PostsDataSource alloc] init] autorelease];
[dataSource.delegates addObject:self];
[dataSource load:TTURLRequestCachePolicyMemory nextPage:NO];
self.dataSource = dataSource;
}
return self;
In my datasource I'm doing a TTURLRequest and when requestDidFinishLoad
gets called, my datasource gets filled with some items.
This all works quite good, but my TTableViewController doesn't show any of these files because it gets initialised and displayed before my datasource is finished. I know it works, because caching my datasource to disk shows all items.
The question is: How do I tell my TTableViewController to refresh the data out of my datasource file in my "requestDidFinishLoad" ?