Skip to content

Instantly share code, notes, and snippets.

View Tylerc230's full-sized avatar

Tyler Casselman Tylerc230

View GitHub Profile
- (id)tableView:(UITableView*)tableView objectAtIndexPath:(NSIndexPath*)indexPath
{
if (indexPath.section == TAPSearchDataSourceSectionTopTalkers) {
if ((indexPath.row == [tableView numberOfRowsInSection:0] - 1) && self.shouldShowAutocompleteTalker && [self autocompletedTalker]) {
return self.autocompletedTalker;
} else if (!self.topTalkers.count || indexPath.row > self.topTalkers.count - 1) {
return self.searchService.serverSearchResultsForTalkers[indexPath.row - self.topTalkers.count];
}
return self.topTalkers[indexPath.row];
} else if (indexPath.section == TAPSearchDataSourceSectionTopConversations) {
(lldb) po responseObject
{
meta = {
code = 200;
};
"salesforce_objects" = (
{
name = "WO-00008710";
"salesforce_id" = a1g1I0000005WcZQAU;
type = "SVMXC__Service_Order__c";
Extra Small
UICTFontTextStyleHeadline
.SFUIText-Semibold <UICTFont: 0x13e554c10> font-family: ".SFUIText-Semibold"; font-weight: bold; font-style: normal; font-size: 14.00pt
UICTFontTextStyleSubhead
.SFUIText-Regular <UICTFont: 0x13e5581b0> font-family: ".SFUIText-Regular"; font-weight: normal; font-style: normal; font-size: 12.00pt
UICTFontTextStyleBody
.SFUIText-Regular <UICTFont: 0x13e55cfd0> font-family: ".SFUIText-Regular"; font-weight: normal; font-style: normal; font-size: 14.00pt
po responseObject
{
id = 18562;
"last_viewed_message_id" = 38837;
participating = 1;
talker = {
address = "tyler@1minute.tapfoo.io";
"avatar_url" = "<null>";
"first_name" = Tyler;
id = 158560;
@Tylerc230
Tylerc230 / gist:1049948
Created June 27, 2011 21:54
Adding dependency relationships to a Sequencer
sequencer_ = [[Sequencer alloc] init];
[sequencer_ addTarget:self action:@selector(parseUserData) dependencies:LSLoggedIn, LSUserDataDownloaded, LSEnd];
[sequencer_ addTarget:self action:@selector(startGame) dependencies:LSLoggedIn, LSAssetsLoaded, LSUserDataDownloaded, LSEnd];