Skip to content

Commit

Permalink
fixed: issue #5 duplicated photo in next batch when loading more from…
Browse files Browse the repository at this point in the history
… Yahoo.
  • Loading branch information
klazuka committed Jul 27, 2009
1 parent 98f2c69 commit 1f21a11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/YahooSearchResultsModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ - (id)initWithResponseFormat:(SearchResponseFormat)responseFormat;
default:
[NSException raise:@"SearchResponseFormat unknown!" format:nil];
}
recordOffset = 1; // Yahoo's API offset is 1-based.
}
return self;
}
Expand Down Expand Up @@ -79,7 +80,7 @@ - (void)reset
[super reset];
[searchTerms release];
searchTerms = nil;
recordOffset = 0;
recordOffset = 1;
[[responseProcessor objects] removeAllObjects];
}

Expand All @@ -88,7 +89,7 @@ - (void)setSearchTerms:(NSString *)theSearchTerms
if (![theSearchTerms isEqualToString:searchTerms]) {
[searchTerms release];
searchTerms = [theSearchTerms retain];
recordOffset = 0;
recordOffset = 1;
}
}

Expand Down

0 comments on commit 1f21a11

Please sign in to comment.