{"action":"created","comment":{"url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/comments/32278798","id":32278798,"diff_hunk":"@@ -50,50 +51,61 @@ We also want a way to call this `Note Display View Controller` when a row is sel\n \n ![image](manual_seque.png) \n \n-This will create a new seque.\n+This will create a new segue called Show segue to Note Display View Controller.\n \n > [action]\n-> set the identifier to 'ShowExistingNote'.\n+> Set the identifier to 'ShowExistingNote'.\n  \n ![image](manual_seque_select.png) ![image](manual_seque_attributes.png) \n \n-Great, let's add support for our new trash can seque.\n+Great, let's add support for our new trash can segue.\n \n > [action]\n-> Open `NotesViewController.swift` and add the followig to the `switch` statement in your `unwindToSeque` function.\n+> Open `NotesViewController.swift` and add the following to the `switch` statement in your `unwindToSeque` function.\n >\t\n \tcase \"Delete\":\n-\t    realm.write() {\n-\t        realm.delete(self.selectedNote)\n+\t    realm.transactionWithBlock() {\n+\t        realm.deleteObject(self.selectedNote)\n \t    }\n >        \n         let source = segue.sourceViewController as! NoteDisplayViewController\n         source.note = nil;\n >\n-The trash when clicked will now delete notes.\n+The trash can, when clicked, will now delete notes.\n \n-Time to enable the table row selection to trigger the seque to the `Note Display View Controller`.\n+Time to enable the table row selection to trigger the segue to the `Note Display View Controller`.\n \n > [action]\n-> Uncomment the following code in your `UITableViewDelegate` extension.\n+> Uncomment the following code in your `UITableViewDelegate` extension in NotesViewController.swift.\n >\n \tself.performSegueWithIdentifier(\"ShowExistingNote\", sender: self)\n \t\n-Ah those good handy seque identifiers...\n+Ah, those good handy segue identifiers...\n \n ##Bonus\n-You may have noticed we are now perform a `Delete` operation in two seperate places, this seems like a good candidate to refactor and ensure we have a unified function that perhaps takes \n-a note and deletes it, this can then replace both chunks of `Delete` code.\n+You may have noticed we are now performing a `Delete` operation in two seperate places. This seems like a good candidate to refactor and ensure we have a unified function that takes \n+a note and deletes it. This can then replace both chunks of `Delete` code.\n+\n+> [solution]\n+> \n+   func deleteNote(note: RLMObject?) {","path":"P9-Note-Display-Controller/content.md","position":107,"original_position":107,"commit_id":"a98ae06bb5a3efd573deee62163132afca0c410c","original_commit_id":"a98ae06bb5a3efd573deee62163132afca0c410c","user":{"login":"extrajordanary","id":4017420,"avatar_url":"https://avatars.githubusercontent.com/u/4017420?v=3","gravatar_id":"","url":"https://api.github.com/users/extrajordanary","html_url":"https://github.com/extrajordanary","followers_url":"https://api.github.com/users/extrajordanary/followers","following_url":"https://api.github.com/users/extrajordanary/following{/other_user}","gists_url":"https://api.github.com/users/extrajordanary/gists{/gist_id}","starred_url":"https://api.github.com/users/extrajordanary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/extrajordanary/subscriptions","organizations_url":"https://api.github.com/users/extrajordanary/orgs","repos_url":"https://api.github.com/users/extrajordanary/repos","events_url":"https://api.github.com/users/extrajordanary/events{/privacy}","received_events_url":"https://api.github.com/users/extrajordanary/received_events","type":"User","site_admin":false},"body":"code","created_at":"2015-06-11T23:21:18Z","updated_at":"2015-06-11T23:21:18Z","html_url":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pull/23#discussion_r32278798","pull_request_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/comments/32278798"},"html":{"href":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pull/23#discussion_r32278798"},"pull_request":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/23","id":37409347,"html_url":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pull/23","diff_url":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pull/23.diff","patch_url":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pull/23.patch","issue_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/issues/23","number":23,"state":"open","locked":false,"title":"P9 wording, spelling, punctuation & clarity w Adam","user":{"login":"samaratrilling","id":1595717,"avatar_url":"https://avatars.githubusercontent.com/u/1595717?v=3","gravatar_id":"","url":"https://api.github.com/users/samaratrilling","html_url":"https://github.com/samaratrilling","followers_url":"https://api.github.com/users/samaratrilling/followers","following_url":"https://api.github.com/users/samaratrilling/following{/other_user}","gists_url":"https://api.github.com/users/samaratrilling/gists{/gist_id}","starred_url":"https://api.github.com/users/samaratrilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samaratrilling/subscriptions","organizations_url":"https://api.github.com/users/samaratrilling/orgs","repos_url":"https://api.github.com/users/samaratrilling/repos","events_url":"https://api.github.com/users/samaratrilling/events{/privacy}","received_events_url":"https://api.github.com/users/samaratrilling/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-10T21:59:09Z","updated_at":"2015-06-11T23:21:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f0f21703c1e9b7c5f68f3daa2c1798dcd491344","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/23/commits","review_comments_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/23/comments","review_comment_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/issues/23/comments","statuses_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/statuses/a98ae06bb5a3efd573deee62163132afca0c410c","head":{"label":"samaratrilling:patch-9","ref":"patch-9","sha":"a98ae06bb5a3efd573deee62163132afca0c410c","user":{"login":"samaratrilling","id":1595717,"avatar_url":"https://avatars.githubusercontent.com/u/1595717?v=3","gravatar_id":"","url":"https://api.github.com/users/samaratrilling","html_url":"https://github.com/samaratrilling","followers_url":"https://api.github.com/users/samaratrilling/followers","following_url":"https://api.github.com/users/samaratrilling/following{/other_user}","gists_url":"https://api.github.com/users/samaratrilling/gists{/gist_id}","starred_url":"https://api.github.com/users/samaratrilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samaratrilling/subscriptions","organizations_url":"https://api.github.com/users/samaratrilling/orgs","repos_url":"https://api.github.com/users/samaratrilling/repos","events_url":"https://api.github.com/users/samaratrilling/events{/privacy}","received_events_url":"https://api.github.com/users/samaratrilling/received_events","type":"User","site_admin":false},"repo":{"id":37150928,"name":"MakeSchoolNotes-Swift","full_name":"samaratrilling/MakeSchoolNotes-Swift","owner":{"login":"samaratrilling","id":1595717,"avatar_url":"https://avatars.githubusercontent.com/u/1595717?v=3","gravatar_id":"","url":"https://api.github.com/users/samaratrilling","html_url":"https://github.com/samaratrilling","followers_url":"https://api.github.com/users/samaratrilling/followers","following_url":"https://api.github.com/users/samaratrilling/following{/other_user}","gists_url":"https://api.github.com/users/samaratrilling/gists{/gist_id}","starred_url":"https://api.github.com/users/samaratrilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samaratrilling/subscriptions","organizations_url":"https://api.github.com/users/samaratrilling/orgs","repos_url":"https://api.github.com/users/samaratrilling/repos","events_url":"https://api.github.com/users/samaratrilling/events{/privacy}","received_events_url":"https://api.github.com/users/samaratrilling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samaratrilling/MakeSchoolNotes-Swift","description":"","fork":true,"url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift","forks_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/forks","keys_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/teams","hooks_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/hooks","issue_events_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/issues/events{/number}","events_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/events","assignees_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/assignees{/user}","branches_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/branches{/branch}","tags_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/tags","blobs_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/statuses/{sha}","languages_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/languages","stargazers_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/stargazers","contributors_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/contributors","subscribers_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/subscribers","subscription_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/subscription","commits_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/contents/{+path}","compare_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/merges","archive_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/downloads","issues_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/issues{/number}","pulls_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/pulls{/number}","milestones_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/milestones{/number}","notifications_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/labels{/name}","releases_url":"https://api.github.com/repos/samaratrilling/MakeSchoolNotes-Swift/releases{/id}","created_at":"2015-06-09T18:38:50Z","updated_at":"2015-05-25T14:13:35Z","pushed_at":"2015-06-11T23:12:28Z","git_url":"git://github.com/samaratrilling/MakeSchoolNotes-Swift.git","ssh_url":"git@github.com:samaratrilling/MakeSchoolNotes-Swift.git","clone_url":"https://github.com/samaratrilling/MakeSchoolNotes-Swift.git","svn_url":"https://github.com/samaratrilling/MakeSchoolNotes-Swift","homepage":null,"size":35743,"stargazers_count":0,"watchers_count":0,"language":null,"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":"MakeSchool-Tutorials:master","ref":"master","sha":"b56a377e9ff1fe2d898dceee0128104eb9163d68","user":{"login":"MakeSchool-Tutorials","id":9429672,"avatar_url":"https://avatars.githubusercontent.com/u/9429672?v=3","gravatar_id":"","url":"https://api.github.com/users/MakeSchool-Tutorials","html_url":"https://github.com/MakeSchool-Tutorials","followers_url":"https://api.github.com/users/MakeSchool-Tutorials/followers","following_url":"https://api.github.com/users/MakeSchool-Tutorials/following{/other_user}","gists_url":"https://api.github.com/users/MakeSchool-Tutorials/gists{/gist_id}","starred_url":"https://api.github.com/users/MakeSchool-Tutorials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakeSchool-Tutorials/subscriptions","organizations_url":"https://api.github.com/users/MakeSchool-Tutorials/orgs","repos_url":"https://api.github.com/users/MakeSchool-Tutorials/repos","events_url":"https://api.github.com/users/MakeSchool-Tutorials/events{/privacy}","received_events_url":"https://api.github.com/users/MakeSchool-Tutorials/received_events","type":"Organization","site_admin":false},"repo":{"id":36213229,"name":"MakeSchoolNotes-Swift","full_name":"MakeSchool-Tutorials/MakeSchoolNotes-Swift","owner":{"login":"MakeSchool-Tutorials","id":9429672,"avatar_url":"https://avatars.githubusercontent.com/u/9429672?v=3","gravatar_id":"","url":"https://api.github.com/users/MakeSchool-Tutorials","html_url":"https://github.com/MakeSchool-Tutorials","followers_url":"https://api.github.com/users/MakeSchool-Tutorials/followers","following_url":"https://api.github.com/users/MakeSchool-Tutorials/following{/other_user}","gists_url":"https://api.github.com/users/MakeSchool-Tutorials/gists{/gist_id}","starred_url":"https://api.github.com/users/MakeSchool-Tutorials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakeSchool-Tutorials/subscriptions","organizations_url":"https://api.github.com/users/MakeSchool-Tutorials/orgs","repos_url":"https://api.github.com/users/MakeSchool-Tutorials/repos","events_url":"https://api.github.com/users/MakeSchool-Tutorials/events{/privacy}","received_events_url":"https://api.github.com/users/MakeSchool-Tutorials/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift","description":"","fork":false,"url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift","forks_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/forks","keys_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/teams","hooks_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/hooks","issue_events_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/issues/events{/number}","events_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/events","assignees_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/assignees{/user}","branches_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/branches{/branch}","tags_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/tags","blobs_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/statuses/{sha}","languages_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/languages","stargazers_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/stargazers","contributors_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/contributors","subscribers_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/subscribers","subscription_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/subscription","commits_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/contents/{+path}","compare_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/merges","archive_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/downloads","issues_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/issues{/number}","pulls_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls{/number}","milestones_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/milestones{/number}","notifications_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/labels{/name}","releases_url":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/releases{/id}","created_at":"2015-05-25T06:08:11Z","updated_at":"2015-05-25T14:13:35Z","pushed_at":"2015-06-11T23:12:28Z","git_url":"git://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift.git","ssh_url":"git@github.com:MakeSchool-Tutorials/MakeSchoolNotes-Swift.git","clone_url":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift.git","svn_url":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift","homepage":null,"size":64646,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":8,"forks":7,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/23"},"html":{"href":"https://github.com/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pull/23"},"issue":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/issues/23"},"comments":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/MakeSchool-Tutorials/MakeSchoolNotes-Swift/statuses/a98ae06bb5a3efd573deee62163132afca0c410c"}}}}