Skip to content

Commit

Permalink
Fixes #23: New release notification is shown when version is newer th…
Browse files Browse the repository at this point in the history
…an latest release.
  • Loading branch information
Daniel Paul Searles committed Feb 21, 2014
1 parent a9c4c06 commit 6856847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objective-octocat-notifications/AFGithubClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ - (void)checkForNewRelease
[[AFGithubClient sharedClient] getPath:tags parameters:@{} success:^(AFHTTPRequestOperation *operation, id response) {
if ([response count] > 0) {
NSString *latestVersion = response[0][@"name"];
if (![kAppVersion isEqualToString:latestVersion]) {
if ([kAppVersion compare:latestVersion options:NSNumericSearch] == NSOrderedAscending) {
NSString *latestUrl = [NSString stringWithFormat:@"https://github.com/squaresurf/objective-octocat-notifications/releases/%@", latestVersion];

NSUserNotification *macNotification = [[NSUserNotification alloc] init];
Expand Down

0 comments on commit 6856847

Please sign in to comment.