GitHub PullRequestReviewCommentEvent at 2014-06-12 17:32:32
Repository: RZUtils
Actor: ndonald2
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/comments/13714549","id":13714549,"diff_hunk":"@@ -0,0 +1,161 @@\n+//\n+//  UINavigationController+RZBlocks.m\n+//\n+//  Created by Andrew McKnight on 5/28/14.\n+//\n+//  Copyright (c) 2014 Raizlabs and other contributors.\n+//  http://raizlabs.com/\n+//\n+//  Permission is hereby granted, free of charge, to any person obtaining\n+//  a copy of this software and associated documentation files (the\n+//  \"Software\"), to deal in the Software without restriction, including\n+//  without limitation the rights to use, copy, modify, merge, publish,\n+//  distribute, sublicense, and/or sell copies of the Software, and to\n+//  permit persons to whom the Software is furnished to do so, subject to\n+//  the following conditions:\n+//\n+//  The above copyright notice and this permission notice shall be\n+//  included in all copies or substantial portions of the Software.\n+//\n+//  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n+//  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+//  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n+//  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n+//  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n+//  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n+//  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n+//\n+\n+#import \"UINavigationController+RZBlocks.h\"\n+\n+#import <objc/runtime.h>\n+\n+static const void * kRZNavigationControllerCompletionBlockHelperKey = &kRZNavigationControllerCompletionBlockHelperKey;\n+\n+@interface RZUINavigationControllerCompletionBlockHelper : NSObject <UINavigationControllerDelegate>\n+\n+@property (copy, nonatomic) RZNavigationControllerCompletionBlock completionBlock;\n+@property (copy, nonatomic) RZNavigationControllerPreparationBlock preparationBlock;\n+@property (strong, nonatomic) NSArray *poppedViewControllers;\n+@property (weak, nonatomic) id<UINavigationControllerDelegate> previousDelegate;\n+\n+@end\n+\n+@implementation RZUINavigationControllerCompletionBlockHelper\n+\n+- (instancetype)init\n+{\n+    self = [super init];\n+    if (self == nil)\n+    {\n+        self.completionBlock = nil;\n+        self.poppedViewControllers = nil;\n+        self.previousDelegate = nil;\n+    }\n+    return self;\n+}\n+\n+#pragma mark - UINavigationControllerDelegate\n+\n+- (void)navigationController:(UINavigationController *)navigationController\n+      willShowViewController:(UIViewController *)viewController\n+                    animated:(BOOL)animated\n+{\n+    if (self.preparationBlock != nil)\n+    {\n+        self.preparationBlock(navigationController, viewController);\n+    }\n+}\n+\n+- (void)navigationController:(UINavigationController *)navigationController\n+       didShowViewController:(UIViewController *)viewController\n+                    animated:(BOOL)animated\n+{\n+    // call the completion block\n+    if (self.completionBlock != nil)\n+    {\n+        self.completionBlock(navigationController, viewController, self.poppedViewControllers);\n+    }\n+    \n+    // reset previous delegate, if any\n+    if (self.previousDelegate != nil)\n+    {","path":"RZUtils/Categories/UINavigationController/UINavigationController+RZBlocks.m","position":82,"original_position":82,"commit_id":"2363ae9c5669b34551970ea0b7d43f6e67ce9410","original_commit_id":"2363ae9c5669b34551970ea0b7d43f6e67ce9410","user":{"login":"ndonald2","id":1433497,"avatar_url":"https://avatars.githubusercontent.com/u/1433497?","gravatar_id":"85c2bfdab49d614704a773bc8eee0046","url":"https://api.github.com/users/ndonald2","html_url":"https://github.com/ndonald2","followers_url":"https://api.github.com/users/ndonald2/followers","following_url":"https://api.github.com/users/ndonald2/following{/other_user}","gists_url":"https://api.github.com/users/ndonald2/gists{/gist_id}","starred_url":"https://api.github.com/users/ndonald2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndonald2/subscriptions","organizations_url":"https://api.github.com/users/ndonald2/orgs","repos_url":"https://api.github.com/users/ndonald2/repos","events_url":"https://api.github.com/users/ndonald2/events{/privacy}","received_events_url":"https://api.github.com/users/ndonald2/received_events","type":"User","site_admin":false},"body":"Brace on same line","created_at":"2014-06-12T17:32:32Z","updated_at":"2014-06-12T17:32:32Z","html_url":"https://github.com/Raizlabs/RZUtils/pull/72#discussion_r13714549","pull_request_url":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/comments/13714549"},"html":{"href":"https://github.com/Raizlabs/RZUtils/pull/72#discussion_r13714549"},"pull_request":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/72","id":16715851,"html_url":"https://github.com/Raizlabs/RZUtils/pull/72","diff_url":"https://github.com/Raizlabs/RZUtils/pull/72.diff","patch_url":"https://github.com/Raizlabs/RZUtils/pull/72.patch","issue_url":"https://api.github.com/repos/Raizlabs/RZUtils/issues/72","number":72,"state":"open","title":"Completion blocks for navigation controller animated operations","user":{"login":"sixstringtheory","id":3241469,"avatar_url":"https://avatars.githubusercontent.com/u/3241469?","gravatar_id":"68f9c2600d8547ac6a2d9c10ec9a9335","url":"https://api.github.com/users/sixstringtheory","html_url":"https://github.com/sixstringtheory","followers_url":"https://api.github.com/users/sixstringtheory/followers","following_url":"https://api.github.com/users/sixstringtheory/following{/other_user}","gists_url":"https://api.github.com/users/sixstringtheory/gists{/gist_id}","starred_url":"https://api.github.com/users/sixstringtheory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sixstringtheory/subscriptions","organizations_url":"https://api.github.com/users/sixstringtheory/orgs","repos_url":"https://api.github.com/users/sixstringtheory/repos","events_url":"https://api.github.com/users/sixstringtheory/events{/privacy}","received_events_url":"https://api.github.com/users/sixstringtheory/received_events","type":"User","site_admin":false},"body":"@ndonald2 @arrouse Just a little convenience category on UINavigation controller","created_at":"2014-06-04T15:38:46Z","updated_at":"2014-06-12T17:32:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cccf0595186c0c8c35c9455d047084265c19e764","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/72/commits","review_comments_url":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/72/comments","review_comment_url":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Raizlabs/RZUtils/issues/72/comments","statuses_url":"https://api.github.com/repos/Raizlabs/RZUtils/statuses/2363ae9c5669b34551970ea0b7d43f6e67ce9410","head":{"label":"Raizlabs:feature/sixstringtheory/navControllerCompletion","ref":"feature/sixstringtheory/navControllerCompletion","sha":"2363ae9c5669b34551970ea0b7d43f6e67ce9410","user":{"login":"Raizlabs","id":621479,"avatar_url":"https://avatars.githubusercontent.com/u/621479?","gravatar_id":"027b33f2f0d912fbf29a6ee786199a9a","url":"https://api.github.com/users/Raizlabs","html_url":"https://github.com/Raizlabs","followers_url":"https://api.github.com/users/Raizlabs/followers","following_url":"https://api.github.com/users/Raizlabs/following{/other_user}","gists_url":"https://api.github.com/users/Raizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Raizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raizlabs/subscriptions","organizations_url":"https://api.github.com/users/Raizlabs/orgs","repos_url":"https://api.github.com/users/Raizlabs/repos","events_url":"https://api.github.com/users/Raizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Raizlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":1404535,"name":"RZUtils","full_name":"Raizlabs/RZUtils","owner":{"login":"Raizlabs","id":621479,"avatar_url":"https://avatars.githubusercontent.com/u/621479?","gravatar_id":"027b33f2f0d912fbf29a6ee786199a9a","url":"https://api.github.com/users/Raizlabs","html_url":"https://github.com/Raizlabs","followers_url":"https://api.github.com/users/Raizlabs/followers","following_url":"https://api.github.com/users/Raizlabs/following{/other_user}","gists_url":"https://api.github.com/users/Raizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Raizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raizlabs/subscriptions","organizations_url":"https://api.github.com/users/Raizlabs/orgs","repos_url":"https://api.github.com/users/Raizlabs/repos","events_url":"https://api.github.com/users/Raizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Raizlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Raizlabs/RZUtils","description":"Raizlabs Commonly Used Tools","fork":false,"url":"https://api.github.com/repos/Raizlabs/RZUtils","forks_url":"https://api.github.com/repos/Raizlabs/RZUtils/forks","keys_url":"https://api.github.com/repos/Raizlabs/RZUtils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Raizlabs/RZUtils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Raizlabs/RZUtils/teams","hooks_url":"https://api.github.com/repos/Raizlabs/RZUtils/hooks","issue_events_url":"https://api.github.com/repos/Raizlabs/RZUtils/issues/events{/number}","events_url":"https://api.github.com/repos/Raizlabs/RZUtils/events","assignees_url":"https://api.github.com/repos/Raizlabs/RZUtils/assignees{/user}","branches_url":"https://api.github.com/repos/Raizlabs/RZUtils/branches{/branch}","tags_url":"https://api.github.com/repos/Raizlabs/RZUtils/tags","blobs_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/refs{/sha}","trees_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Raizlabs/RZUtils/statuses/{sha}","languages_url":"https://api.github.com/repos/Raizlabs/RZUtils/languages","stargazers_url":"https://api.github.com/repos/Raizlabs/RZUtils/stargazers","contributors_url":"https://api.github.com/repos/Raizlabs/RZUtils/contributors","subscribers_url":"https://api.github.com/repos/Raizlabs/RZUtils/subscribers","subscription_url":"https://api.github.com/repos/Raizlabs/RZUtils/subscription","commits_url":"https://api.github.com/repos/Raizlabs/RZUtils/commits{/sha}","git_commits_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/commits{/sha}","comments_url":"https://api.github.com/repos/Raizlabs/RZUtils/comments{/number}","issue_comment_url":"https://api.github.com/repos/Raizlabs/RZUtils/issues/comments/{number}","contents_url":"https://api.github.com/repos/Raizlabs/RZUtils/contents/{+path}","compare_url":"https://api.github.com/repos/Raizlabs/RZUtils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Raizlabs/RZUtils/merges","archive_url":"https://api.github.com/repos/Raizlabs/RZUtils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Raizlabs/RZUtils/downloads","issues_url":"https://api.github.com/repos/Raizlabs/RZUtils/issues{/number}","pulls_url":"https://api.github.com/repos/Raizlabs/RZUtils/pulls{/number}","milestones_url":"https://api.github.com/repos/Raizlabs/RZUtils/milestones{/number}","notifications_url":"https://api.github.com/repos/Raizlabs/RZUtils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Raizlabs/RZUtils/labels{/name}","releases_url":"https://api.github.com/repos/Raizlabs/RZUtils/releases{/id}","created_at":"2011-02-23T23:33:39Z","updated_at":"2014-06-12T17:29:05Z","pushed_at":"2014-06-12T17:29:05Z","git_url":"git://github.com/Raizlabs/RZUtils.git","ssh_url":"git@github.com:Raizlabs/RZUtils.git","clone_url":"https://github.com/Raizlabs/RZUtils.git","svn_url":"https://github.com/Raizlabs/RZUtils","homepage":"","size":4871,"stargazers_count":18,"watchers_count":18,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":18,"default_branch":"master"}},"base":{"label":"Raizlabs:master","ref":"master","sha":"bb61b54d74d23ff11c37b6edbc23fbdef65e994a","user":{"login":"Raizlabs","id":621479,"avatar_url":"https://avatars.githubusercontent.com/u/621479?","gravatar_id":"027b33f2f0d912fbf29a6ee786199a9a","url":"https://api.github.com/users/Raizlabs","html_url":"https://github.com/Raizlabs","followers_url":"https://api.github.com/users/Raizlabs/followers","following_url":"https://api.github.com/users/Raizlabs/following{/other_user}","gists_url":"https://api.github.com/users/Raizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Raizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raizlabs/subscriptions","organizations_url":"https://api.github.com/users/Raizlabs/orgs","repos_url":"https://api.github.com/users/Raizlabs/repos","events_url":"https://api.github.com/users/Raizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Raizlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":1404535,"name":"RZUtils","full_name":"Raizlabs/RZUtils","owner":{"login":"Raizlabs","id":621479,"avatar_url":"https://avatars.githubusercontent.com/u/621479?","gravatar_id":"027b33f2f0d912fbf29a6ee786199a9a","url":"https://api.github.com/users/Raizlabs","html_url":"https://github.com/Raizlabs","followers_url":"https://api.github.com/users/Raizlabs/followers","following_url":"https://api.github.com/users/Raizlabs/following{/other_user}","gists_url":"https://api.github.com/users/Raizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Raizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raizlabs/subscriptions","organizations_url":"https://api.github.com/users/Raizlabs/orgs","repos_url":"https://api.github.com/users/Raizlabs/repos","events_url":"https://api.github.com/users/Raizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Raizlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Raizlabs/RZUtils","description":"Raizlabs Commonly Used Tools","fork":false,"url":"https://api.github.com/repos/Raizlabs/RZUtils","forks_url":"https://api.github.com/repos/Raizlabs/RZUtils/forks","keys_url":"https://api.github.com/repos/Raizlabs/RZUtils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Raizlabs/RZUtils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Raizlabs/RZUtils/teams","hooks_url":"https://api.github.com/repos/Raizlabs/RZUtils/hooks","issue_events_url":"https://api.github.com/repos/Raizlabs/RZUtils/issues/events{/number}","events_url":"https://api.github.com/repos/Raizlabs/RZUtils/events","assignees_url":"https://api.github.com/repos/Raizlabs/RZUtils/assignees{/user}","branches_url":"https://api.github.com/repos/Raizlabs/RZUtils/branches{/branch}","tags_url":"https://api.github.com/repos/Raizlabs/RZUtils/tags","blobs_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/refs{/sha}","trees_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Raizlabs/RZUtils/statuses/{sha}","languages_url":"https://api.github.com/repos/Raizlabs/RZUtils/languages","stargazers_url":"https://api.github.com/repos/Raizlabs/RZUtils/stargazers","contributors_url":"https://api.github.com/repos/Raizlabs/RZUtils/contributors","subscribers_url":"https://api.github.com/repos/Raizlabs/RZUtils/subscribers","subscription_url":"https://api.github.com/repos/Raizlabs/RZUtils/subscription","commits_url":"https://api.github.com/repos/Raizlabs/RZUtils/commits{/sha}","git_commits_url":"https://api.github.com/repos/Raizlabs/RZUtils/git/commits{/sha}","comments_url":"https://api.github.com/repos/Raizlabs/RZUtils/comments{/number}","issue_comment_url":"https://api.github.com/repos/Raizlabs/RZUtils/issues/comments/{number}","contents_url":"https://api.github.com/repos/Raizlabs/RZUtils/contents/{+path}","compare_url":"https://api.github.com/repos/Raizlabs/RZUtils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Raizlabs/RZUtils/merges","archive_url":"https://api.github.com/repos/Raizlabs/RZUtils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Raizlabs/RZUtils/downloads","issues_url":"https://api.github.com/repos/Raizlabs/RZUtils/issues{/number}","pulls_url":"https://api.github.com/repos/Raizlabs/RZUtils/pulls{/number}","milestones_url":"https://api.github.com/repos/Raizlabs/RZUtils/milestones{/number}","notifications_url":"https://api.github.com/repos/Raizlabs/RZUtils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Raizlabs/RZUtils/labels{/name}","releases_url":"https://api.github.com/repos/Raizlabs/RZUtils/releases{/id}","created_at":"2011-02-23T23:33:39Z","updated_at":"2014-06-12T17:29:05Z","pushed_at":"2014-06-12T17:29:05Z","git_url":"git://github.com/Raizlabs/RZUtils.git","ssh_url":"git@github.com:Raizlabs/RZUtils.git","clone_url":"https://github.com/Raizlabs/RZUtils.git","svn_url":"https://github.com/Raizlabs/RZUtils","homepage":"","size":4871,"stargazers_count":18,"watchers_count":18,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/72"},"html":{"href":"https://github.com/Raizlabs/RZUtils/pull/72"},"issue":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/issues/72"},"comments":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/Raizlabs/RZUtils/statuses/2363ae9c5669b34551970ea0b7d43f6e67ce9410"}}}}