{"action":"created","comment":{"url":"https://api.github.com/repos/vokal/Vokoder/pulls/comments/30898912","id":30898912,"diff_hunk":"@@ -96,6 +99,21 @@ + (instancetype)vok_addWithDictionary:(NSDictionary *)inputDict forManagedObject\n     }\n }\n \n++ (void)vok_addWithArrayInBackground:(NSArray *)inputArray completion:(VOKManagedObjectReturnBlock)completion\n+{\n+    [VOKCoreDataManager importArrayInBackground:inputArray\n+                                       forClass:[self class]\n+                                     completion:^(NSArray *arrayOfManagedObjectIDs) {\n+                                         NSMutableArray *returnArray = [NSMutableArray array];","path":"Pod/Classes/NSManagedObject+VOKManagedObjectAdditions.m","position":37,"original_position":37,"commit_id":"65df59071031d56621f7be2a4bcc062bdc2fc3ca","original_commit_id":"65df59071031d56621f7be2a4bcc062bdc2fc3ca","user":{"login":"brockboland","id":163838,"avatar_url":"https://avatars.githubusercontent.com/u/163838?v=3","gravatar_id":"","url":"https://api.github.com/users/brockboland","html_url":"https://github.com/brockboland","followers_url":"https://api.github.com/users/brockboland/followers","following_url":"https://api.github.com/users/brockboland/following{/other_user}","gists_url":"https://api.github.com/users/brockboland/gists{/gist_id}","starred_url":"https://api.github.com/users/brockboland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockboland/subscriptions","organizations_url":"https://api.github.com/users/brockboland/orgs","repos_url":"https://api.github.com/users/brockboland/repos","events_url":"https://api.github.com/users/brockboland/events{/privacy}","received_events_url":"https://api.github.com/users/brockboland/received_events","type":"User","site_admin":false},"body":"I know this is @vokal-isaac's thing: this should (or at least could) use `arrayWithCapacity`","created_at":"2015-05-22T14:23:38Z","updated_at":"2015-05-22T14:23:38Z","html_url":"https://github.com/vokal/Vokoder/pull/43#discussion_r30898912","pull_request_url":"https://api.github.com/repos/vokal/Vokoder/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/vokal/Vokoder/pulls/comments/30898912"},"html":{"href":"https://github.com/vokal/Vokoder/pull/43#discussion_r30898912"},"pull_request":{"href":"https://api.github.com/repos/vokal/Vokoder/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/vokal/Vokoder/pulls/43","id":35995236,"html_url":"https://github.com/vokal/Vokoder/pull/43","diff_url":"https://github.com/vokal/Vokoder/pull/43.diff","patch_url":"https://github.com/vokal/Vokoder/pull/43.patch","issue_url":"https://api.github.com/repos/vokal/Vokoder/issues/43","number":43,"state":"open","locked":false,"title":"new convenience method to import in background and return MOs or at least MOIDs","user":{"login":"seanwolter","id":68043,"avatar_url":"https://avatars.githubusercontent.com/u/68043?v=3","gravatar_id":"","url":"https://api.github.com/users/seanwolter","html_url":"https://github.com/seanwolter","followers_url":"https://api.github.com/users/seanwolter/followers","following_url":"https://api.github.com/users/seanwolter/following{/other_user}","gists_url":"https://api.github.com/users/seanwolter/gists{/gist_id}","starred_url":"https://api.github.com/users/seanwolter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanwolter/subscriptions","organizations_url":"https://api.github.com/users/seanwolter/orgs","repos_url":"https://api.github.com/users/seanwolter/repos","events_url":"https://api.github.com/users/seanwolter/events{/privacy}","received_events_url":"https://api.github.com/users/seanwolter/received_events","type":"User","site_admin":false},"body":"Turns out I've written something like [this](https://github.com/seanwolter/Vokoder/commit/29b73f669fd03adc90211636c8e20f6b0f835140#diff-7146a6b3c1018a27cc0a184a8beb4a6dR102) a few times. Seems like the time to make importing and returning an array a little easier.\r\n\r\nAlso:\r\nI think this fixes https://github.com/vokal/Vokoder/issues/1 and https://github.com/vokal/Vokoder/issues/39 . I decided to delete most of the stuff in the class extension.","created_at":"2015-05-22T02:17:10Z","updated_at":"2015-05-22T14:23:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b909b378c0d4b8531940df14aa683e57418f72e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vokal/Vokoder/pulls/43/commits","review_comments_url":"https://api.github.com/repos/vokal/Vokoder/pulls/43/comments","review_comment_url":"https://api.github.com/repos/vokal/Vokoder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vokal/Vokoder/issues/43/comments","statuses_url":"https://api.github.com/repos/vokal/Vokoder/statuses/65df59071031d56621f7be2a4bcc062bdc2fc3ca","head":{"label":"seanwolter:master","ref":"master","sha":"65df59071031d56621f7be2a4bcc062bdc2fc3ca","user":{"login":"seanwolter","id":68043,"avatar_url":"https://avatars.githubusercontent.com/u/68043?v=3","gravatar_id":"","url":"https://api.github.com/users/seanwolter","html_url":"https://github.com/seanwolter","followers_url":"https://api.github.com/users/seanwolter/followers","following_url":"https://api.github.com/users/seanwolter/following{/other_user}","gists_url":"https://api.github.com/users/seanwolter/gists{/gist_id}","starred_url":"https://api.github.com/users/seanwolter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanwolter/subscriptions","organizations_url":"https://api.github.com/users/seanwolter/orgs","repos_url":"https://api.github.com/users/seanwolter/repos","events_url":"https://api.github.com/users/seanwolter/events{/privacy}","received_events_url":"https://api.github.com/users/seanwolter/received_events","type":"User","site_admin":false},"repo":{"id":18103030,"name":"Vokoder","full_name":"seanwolter/Vokoder","owner":{"login":"seanwolter","id":68043,"avatar_url":"https://avatars.githubusercontent.com/u/68043?v=3","gravatar_id":"","url":"https://api.github.com/users/seanwolter","html_url":"https://github.com/seanwolter","followers_url":"https://api.github.com/users/seanwolter/followers","following_url":"https://api.github.com/users/seanwolter/following{/other_user}","gists_url":"https://api.github.com/users/seanwolter/gists{/gist_id}","starred_url":"https://api.github.com/users/seanwolter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanwolter/subscriptions","organizations_url":"https://api.github.com/users/seanwolter/orgs","repos_url":"https://api.github.com/users/seanwolter/repos","events_url":"https://api.github.com/users/seanwolter/events{/privacy}","received_events_url":"https://api.github.com/users/seanwolter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seanwolter/Vokoder","description":"A lightweight core data stack with efficient importing and exporting on the side.","fork":true,"url":"https://api.github.com/repos/seanwolter/Vokoder","forks_url":"https://api.github.com/repos/seanwolter/Vokoder/forks","keys_url":"https://api.github.com/repos/seanwolter/Vokoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seanwolter/Vokoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seanwolter/Vokoder/teams","hooks_url":"https://api.github.com/repos/seanwolter/Vokoder/hooks","issue_events_url":"https://api.github.com/repos/seanwolter/Vokoder/issues/events{/number}","events_url":"https://api.github.com/repos/seanwolter/Vokoder/events","assignees_url":"https://api.github.com/repos/seanwolter/Vokoder/assignees{/user}","branches_url":"https://api.github.com/repos/seanwolter/Vokoder/branches{/branch}","tags_url":"https://api.github.com/repos/seanwolter/Vokoder/tags","blobs_url":"https://api.github.com/repos/seanwolter/Vokoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seanwolter/Vokoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seanwolter/Vokoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/seanwolter/Vokoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seanwolter/Vokoder/statuses/{sha}","languages_url":"https://api.github.com/repos/seanwolter/Vokoder/languages","stargazers_url":"https://api.github.com/repos/seanwolter/Vokoder/stargazers","contributors_url":"https://api.github.com/repos/seanwolter/Vokoder/contributors","subscribers_url":"https://api.github.com/repos/seanwolter/Vokoder/subscribers","subscription_url":"https://api.github.com/repos/seanwolter/Vokoder/subscription","commits_url":"https://api.github.com/repos/seanwolter/Vokoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/seanwolter/Vokoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/seanwolter/Vokoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/seanwolter/Vokoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/seanwolter/Vokoder/contents/{+path}","compare_url":"https://api.github.com/repos/seanwolter/Vokoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seanwolter/Vokoder/merges","archive_url":"https://api.github.com/repos/seanwolter/Vokoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seanwolter/Vokoder/downloads","issues_url":"https://api.github.com/repos/seanwolter/Vokoder/issues{/number}","pulls_url":"https://api.github.com/repos/seanwolter/Vokoder/pulls{/number}","milestones_url":"https://api.github.com/repos/seanwolter/Vokoder/milestones{/number}","notifications_url":"https://api.github.com/repos/seanwolter/Vokoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seanwolter/Vokoder/labels{/name}","releases_url":"https://api.github.com/repos/seanwolter/Vokoder/releases{/id}","created_at":"2014-03-25T14:26:10Z","updated_at":"2014-12-30T21:40:34Z","pushed_at":"2015-05-22T02:24:42Z","git_url":"git://github.com/seanwolter/Vokoder.git","ssh_url":"git@github.com:seanwolter/Vokoder.git","clone_url":"https://github.com/seanwolter/Vokoder.git","svn_url":"https://github.com/seanwolter/Vokoder","homepage":null,"size":348,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vokal:master","ref":"master","sha":"73142a4fc7a070267b13568f6a7847202d575e3d","user":{"login":"vokal","id":375026,"avatar_url":"https://avatars.githubusercontent.com/u/375026?v=3","gravatar_id":"","url":"https://api.github.com/users/vokal","html_url":"https://github.com/vokal","followers_url":"https://api.github.com/users/vokal/followers","following_url":"https://api.github.com/users/vokal/following{/other_user}","gists_url":"https://api.github.com/users/vokal/gists{/gist_id}","starred_url":"https://api.github.com/users/vokal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vokal/subscriptions","organizations_url":"https://api.github.com/users/vokal/orgs","repos_url":"https://api.github.com/users/vokal/repos","events_url":"https://api.github.com/users/vokal/events{/privacy}","received_events_url":"https://api.github.com/users/vokal/received_events","type":"Organization","site_admin":false},"repo":{"id":18085129,"name":"Vokoder","full_name":"vokal/Vokoder","owner":{"login":"vokal","id":375026,"avatar_url":"https://avatars.githubusercontent.com/u/375026?v=3","gravatar_id":"","url":"https://api.github.com/users/vokal","html_url":"https://github.com/vokal","followers_url":"https://api.github.com/users/vokal/followers","following_url":"https://api.github.com/users/vokal/following{/other_user}","gists_url":"https://api.github.com/users/vokal/gists{/gist_id}","starred_url":"https://api.github.com/users/vokal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vokal/subscriptions","organizations_url":"https://api.github.com/users/vokal/orgs","repos_url":"https://api.github.com/users/vokal/repos","events_url":"https://api.github.com/users/vokal/events{/privacy}","received_events_url":"https://api.github.com/users/vokal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vokal/Vokoder","description":"A lightweight core data stack with efficient importing and exporting on the side.","fork":false,"url":"https://api.github.com/repos/vokal/Vokoder","forks_url":"https://api.github.com/repos/vokal/Vokoder/forks","keys_url":"https://api.github.com/repos/vokal/Vokoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vokal/Vokoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vokal/Vokoder/teams","hooks_url":"https://api.github.com/repos/vokal/Vokoder/hooks","issue_events_url":"https://api.github.com/repos/vokal/Vokoder/issues/events{/number}","events_url":"https://api.github.com/repos/vokal/Vokoder/events","assignees_url":"https://api.github.com/repos/vokal/Vokoder/assignees{/user}","branches_url":"https://api.github.com/repos/vokal/Vokoder/branches{/branch}","tags_url":"https://api.github.com/repos/vokal/Vokoder/tags","blobs_url":"https://api.github.com/repos/vokal/Vokoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vokal/Vokoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vokal/Vokoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/vokal/Vokoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vokal/Vokoder/statuses/{sha}","languages_url":"https://api.github.com/repos/vokal/Vokoder/languages","stargazers_url":"https://api.github.com/repos/vokal/Vokoder/stargazers","contributors_url":"https://api.github.com/repos/vokal/Vokoder/contributors","subscribers_url":"https://api.github.com/repos/vokal/Vokoder/subscribers","subscription_url":"https://api.github.com/repos/vokal/Vokoder/subscription","commits_url":"https://api.github.com/repos/vokal/Vokoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/vokal/Vokoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/vokal/Vokoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/vokal/Vokoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/vokal/Vokoder/contents/{+path}","compare_url":"https://api.github.com/repos/vokal/Vokoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vokal/Vokoder/merges","archive_url":"https://api.github.com/repos/vokal/Vokoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vokal/Vokoder/downloads","issues_url":"https://api.github.com/repos/vokal/Vokoder/issues{/number}","pulls_url":"https://api.github.com/repos/vokal/Vokoder/pulls{/number}","milestones_url":"https://api.github.com/repos/vokal/Vokoder/milestones{/number}","notifications_url":"https://api.github.com/repos/vokal/Vokoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vokal/Vokoder/labels{/name}","releases_url":"https://api.github.com/repos/vokal/Vokoder/releases{/id}","created_at":"2014-03-25T01:33:59Z","updated_at":"2015-05-11T21:11:54Z","pushed_at":"2015-05-22T02:24:44Z","git_url":"git://github.com/vokal/Vokoder.git","ssh_url":"git@github.com:vokal/Vokoder.git","clone_url":"https://github.com/vokal/Vokoder.git","svn_url":"https://github.com/vokal/Vokoder","homepage":null,"size":820,"stargazers_count":5,"watchers_count":5,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":11,"forks":9,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vokal/Vokoder/pulls/43"},"html":{"href":"https://github.com/vokal/Vokoder/pull/43"},"issue":{"href":"https://api.github.com/repos/vokal/Vokoder/issues/43"},"comments":{"href":"https://api.github.com/repos/vokal/Vokoder/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/vokal/Vokoder/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/vokal/Vokoder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vokal/Vokoder/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/vokal/Vokoder/statuses/65df59071031d56621f7be2a4bcc062bdc2fc3ca"}}}}