Change MyCompany stuff to Two Toasters

This commit is contained in:
Blake Watters
2011-01-16 21:51:39 -05:00
parent 319f7355af
commit 91e7f947fd
25 changed files with 73 additions and 70 deletions

View File

@@ -3,7 +3,7 @@
// DiscussionBoard
//
// Created by Jeremy Ellison on 1/7/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
// Copyright 2011 Two Toasters. All rights reserved.
//
#import "DBTopicsTableViewController.h"
@@ -24,13 +24,13 @@
- (void)createModel {
[super createModel];
UIBarButtonItem* item = nil;
if ([DBUser currentUser]) {
item = [[[UIBarButtonItem alloc] initWithTitle:@"Logout" style:UIBarButtonItemStyleBordered target:self action:@selector(logoutButtonWasPressed:)] autorelease];
}
self.navigationItem.leftBarButtonItem = item;
UIBarButtonItem* newItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addButtonWasPressed:)] autorelease];
self.navigationItem.rightBarButtonItem = newItem;
}
@@ -46,14 +46,14 @@
- (void)didLoadModel:(BOOL)firstTime {
[super didLoadModel:firstTime];
RKRequestTTModel* model = (RKRequestTTModel*)self.model;
NSMutableArray* items = [NSMutableArray arrayWithCapacity:[model.objects count]];
for(DBTopic* topic in model.objects) {
NSString* url = [NSString stringWithFormat:@"db://topics/%@/posts", topic.topicID];
[items addObject:[TTTableTextItem itemWithText:topic.name URL:url]];
}
NSLog(@"Items: %@", items);
// Ensure that the datasource's model is still the RKRequestTTModel;
// Otherwise isOutdated will not work.