{"action":"created","comment":{"url":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/comments/83967890","pull_request_review_id":4776534,"id":83967890,"diff_hunk":"@@ -0,0 +1,234 @@\n+In this tutorial we will create a simple view-based outline view. `CPOutlineView` displays data in hierarchical format. In other programming languages it is referred as Tree-view. Although `CPOutlineView` is a subclass of `CPTableView` and inherits the row and column format, the implementation is slightly different. We will create an organisation chart of a company with the ability to expand and collapse items.\n+![](simpleoutlineview/simpleoutlineview.png)\n+\n+### Create the project\n+Run the `capp` command in your project folder:\n+\n+    :::sh\n+    capp gen -l -t NibApplication SimpleOutlineView\n+\n+This will generate an empty new project using the Nib template.\n+\n+### Code\n+Our data source model will be created in a separate file to keep our code organized. In this way you can easily structure your project around MVC pattern. Create a new file with a name of `Employee.j`.\n+\n+    :::objj    \n+    @import <Foundation/CPObject.j>\n+\n+    @implementation Employee : CPObject\n+    {\n+        CPString       _name      @accessors( property=name );\n+        CPString       _title     @accessors( property=title );\n+        CPMutableArray employees  @accessors;","path":"source/learn/simple-outlineview.html.markdown","position":22,"original_position":22,"commit_id":"a93e6dffcdcd443a90dc249d26901ad1f529742b","original_commit_id":"a93e6dffcdcd443a90dc249d26901ad1f529742b","user":{"login":"Dogild","id":2860781,"avatar_url":"https://avatars.githubusercontent.com/u/2860781?v=3","gravatar_id":"","url":"https://api.github.com/users/Dogild","html_url":"https://github.com/Dogild","followers_url":"https://api.github.com/users/Dogild/followers","following_url":"https://api.github.com/users/Dogild/following{/other_user}","gists_url":"https://api.github.com/users/Dogild/gists{/gist_id}","starred_url":"https://api.github.com/users/Dogild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dogild/subscriptions","organizations_url":"https://api.github.com/users/Dogild/orgs","repos_url":"https://api.github.com/users/Dogild/repos","events_url":"https://api.github.com/users/Dogild/events{/privacy}","received_events_url":"https://api.github.com/users/Dogild/received_events","type":"User","site_admin":false},"body":"It should be _employees with the property employees","created_at":"2016-10-18T22:53:29Z","updated_at":"2016-10-18T22:56:11Z","html_url":"https://github.com/cappuccino/cappuccino.org/pull/67#discussion_r83967890","pull_request_url":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/comments/83967890"},"html":{"href":"https://github.com/cappuccino/cappuccino.org/pull/67#discussion_r83967890"},"pull_request":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/67","id":85719179,"html_url":"https://github.com/cappuccino/cappuccino.org/pull/67","diff_url":"https://github.com/cappuccino/cappuccino.org/pull/67.diff","patch_url":"https://github.com/cappuccino/cappuccino.org/pull/67.patch","issue_url":"https://api.github.com/repos/cappuccino/cappuccino.org/issues/67","number":67,"state":"open","locked":false,"title":"Simple Outlineview tutorial","user":{"login":"kicsipixel","id":572584,"avatar_url":"https://avatars.githubusercontent.com/u/572584?v=3","gravatar_id":"","url":"https://api.github.com/users/kicsipixel","html_url":"https://github.com/kicsipixel","followers_url":"https://api.github.com/users/kicsipixel/followers","following_url":"https://api.github.com/users/kicsipixel/following{/other_user}","gists_url":"https://api.github.com/users/kicsipixel/gists{/gist_id}","starred_url":"https://api.github.com/users/kicsipixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kicsipixel/subscriptions","organizations_url":"https://api.github.com/users/kicsipixel/orgs","repos_url":"https://api.github.com/users/kicsipixel/repos","events_url":"https://api.github.com/users/kicsipixel/events{/privacy}","received_events_url":"https://api.github.com/users/kicsipixel/received_events","type":"User","site_admin":false},"body":"CPOutlineView tutorial with file import.","created_at":"2016-09-18T18:57:24Z","updated_at":"2016-10-18T22:56:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ed5070b55c3875de0c33445093ea9085b9cb5fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/67/commits","review_comments_url":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/67/comments","review_comment_url":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cappuccino/cappuccino.org/issues/67/comments","statuses_url":"https://api.github.com/repos/cappuccino/cappuccino.org/statuses/a93e6dffcdcd443a90dc249d26901ad1f529742b","head":{"label":"kicsipixel:SimpleOutlineViewTutorial","ref":"SimpleOutlineViewTutorial","sha":"a93e6dffcdcd443a90dc249d26901ad1f529742b","user":{"login":"kicsipixel","id":572584,"avatar_url":"https://avatars.githubusercontent.com/u/572584?v=3","gravatar_id":"","url":"https://api.github.com/users/kicsipixel","html_url":"https://github.com/kicsipixel","followers_url":"https://api.github.com/users/kicsipixel/followers","following_url":"https://api.github.com/users/kicsipixel/following{/other_user}","gists_url":"https://api.github.com/users/kicsipixel/gists{/gist_id}","starred_url":"https://api.github.com/users/kicsipixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kicsipixel/subscriptions","organizations_url":"https://api.github.com/users/kicsipixel/orgs","repos_url":"https://api.github.com/users/kicsipixel/repos","events_url":"https://api.github.com/users/kicsipixel/events{/privacy}","received_events_url":"https://api.github.com/users/kicsipixel/received_events","type":"User","site_admin":false},"repo":{"id":49294109,"name":"cappuccino.org","full_name":"kicsipixel/cappuccino.org","owner":{"login":"kicsipixel","id":572584,"avatar_url":"https://avatars.githubusercontent.com/u/572584?v=3","gravatar_id":"","url":"https://api.github.com/users/kicsipixel","html_url":"https://github.com/kicsipixel","followers_url":"https://api.github.com/users/kicsipixel/followers","following_url":"https://api.github.com/users/kicsipixel/following{/other_user}","gists_url":"https://api.github.com/users/kicsipixel/gists{/gist_id}","starred_url":"https://api.github.com/users/kicsipixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kicsipixel/subscriptions","organizations_url":"https://api.github.com/users/kicsipixel/orgs","repos_url":"https://api.github.com/users/kicsipixel/repos","events_url":"https://api.github.com/users/kicsipixel/events{/privacy}","received_events_url":"https://api.github.com/users/kicsipixel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kicsipixel/cappuccino.org","description":"Cappuccino website.","fork":true,"url":"https://api.github.com/repos/kicsipixel/cappuccino.org","forks_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/forks","keys_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/teams","hooks_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/hooks","issue_events_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/issues/events{/number}","events_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/events","assignees_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/assignees{/user}","branches_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/branches{/branch}","tags_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/tags","blobs_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/statuses/{sha}","languages_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/languages","stargazers_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/stargazers","contributors_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/contributors","subscribers_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/subscribers","subscription_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/subscription","commits_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/contents/{+path}","compare_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/merges","archive_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/downloads","issues_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/issues{/number}","pulls_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/pulls{/number}","milestones_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/milestones{/number}","notifications_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/labels{/name}","releases_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/releases{/id}","deployments_url":"https://api.github.com/repos/kicsipixel/cappuccino.org/deployments","created_at":"2016-01-08T20:17:40Z","updated_at":"2016-08-18T19:46:08Z","pushed_at":"2016-09-19T18:03:34Z","git_url":"git://github.com/kicsipixel/cappuccino.org.git","ssh_url":"git@github.com:kicsipixel/cappuccino.org.git","clone_url":"https://github.com/kicsipixel/cappuccino.org.git","svn_url":"https://github.com/kicsipixel/cappuccino.org","homepage":null,"size":175441,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"cappuccino:master","ref":"master","sha":"2c17d7ce8961475f5740eb6693fc79498bd74ff9","user":{"login":"cappuccino","id":16595,"avatar_url":"https://avatars.githubusercontent.com/u/16595?v=3","gravatar_id":"","url":"https://api.github.com/users/cappuccino","html_url":"https://github.com/cappuccino","followers_url":"https://api.github.com/users/cappuccino/followers","following_url":"https://api.github.com/users/cappuccino/following{/other_user}","gists_url":"https://api.github.com/users/cappuccino/gists{/gist_id}","starred_url":"https://api.github.com/users/cappuccino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cappuccino/subscriptions","organizations_url":"https://api.github.com/users/cappuccino/orgs","repos_url":"https://api.github.com/users/cappuccino/repos","events_url":"https://api.github.com/users/cappuccino/events{/privacy}","received_events_url":"https://api.github.com/users/cappuccino/received_events","type":"Organization","site_admin":false},"repo":{"id":7450330,"name":"cappuccino.org","full_name":"cappuccino/cappuccino.org","owner":{"login":"cappuccino","id":16595,"avatar_url":"https://avatars.githubusercontent.com/u/16595?v=3","gravatar_id":"","url":"https://api.github.com/users/cappuccino","html_url":"https://github.com/cappuccino","followers_url":"https://api.github.com/users/cappuccino/followers","following_url":"https://api.github.com/users/cappuccino/following{/other_user}","gists_url":"https://api.github.com/users/cappuccino/gists{/gist_id}","starred_url":"https://api.github.com/users/cappuccino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cappuccino/subscriptions","organizations_url":"https://api.github.com/users/cappuccino/orgs","repos_url":"https://api.github.com/users/cappuccino/repos","events_url":"https://api.github.com/users/cappuccino/events{/privacy}","received_events_url":"https://api.github.com/users/cappuccino/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cappuccino/cappuccino.org","description":"Cappuccino website.","fork":false,"url":"https://api.github.com/repos/cappuccino/cappuccino.org","forks_url":"https://api.github.com/repos/cappuccino/cappuccino.org/forks","keys_url":"https://api.github.com/repos/cappuccino/cappuccino.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cappuccino/cappuccino.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cappuccino/cappuccino.org/teams","hooks_url":"https://api.github.com/repos/cappuccino/cappuccino.org/hooks","issue_events_url":"https://api.github.com/repos/cappuccino/cappuccino.org/issues/events{/number}","events_url":"https://api.github.com/repos/cappuccino/cappuccino.org/events","assignees_url":"https://api.github.com/repos/cappuccino/cappuccino.org/assignees{/user}","branches_url":"https://api.github.com/repos/cappuccino/cappuccino.org/branches{/branch}","tags_url":"https://api.github.com/repos/cappuccino/cappuccino.org/tags","blobs_url":"https://api.github.com/repos/cappuccino/cappuccino.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cappuccino/cappuccino.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cappuccino/cappuccino.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/cappuccino/cappuccino.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cappuccino/cappuccino.org/statuses/{sha}","languages_url":"https://api.github.com/repos/cappuccino/cappuccino.org/languages","stargazers_url":"https://api.github.com/repos/cappuccino/cappuccino.org/stargazers","contributors_url":"https://api.github.com/repos/cappuccino/cappuccino.org/contributors","subscribers_url":"https://api.github.com/repos/cappuccino/cappuccino.org/subscribers","subscription_url":"https://api.github.com/repos/cappuccino/cappuccino.org/subscription","commits_url":"https://api.github.com/repos/cappuccino/cappuccino.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/cappuccino/cappuccino.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/cappuccino/cappuccino.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/cappuccino/cappuccino.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/cappuccino/cappuccino.org/contents/{+path}","compare_url":"https://api.github.com/repos/cappuccino/cappuccino.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cappuccino/cappuccino.org/merges","archive_url":"https://api.github.com/repos/cappuccino/cappuccino.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cappuccino/cappuccino.org/downloads","issues_url":"https://api.github.com/repos/cappuccino/cappuccino.org/issues{/number}","pulls_url":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls{/number}","milestones_url":"https://api.github.com/repos/cappuccino/cappuccino.org/milestones{/number}","notifications_url":"https://api.github.com/repos/cappuccino/cappuccino.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cappuccino/cappuccino.org/labels{/name}","releases_url":"https://api.github.com/repos/cappuccino/cappuccino.org/releases{/id}","deployments_url":"https://api.github.com/repos/cappuccino/cappuccino.org/deployments","created_at":"2013-01-05T01:56:50Z","updated_at":"2016-04-02T09:10:10Z","pushed_at":"2016-09-19T18:03:35Z","git_url":"git://github.com/cappuccino/cappuccino.org.git","ssh_url":"git@github.com:cappuccino/cappuccino.org.git","clone_url":"https://github.com/cappuccino/cappuccino.org.git","svn_url":"https://github.com/cappuccino/cappuccino.org","homepage":null,"size":167877,"stargazers_count":13,"watchers_count":13,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":2,"forks":13,"open_issues":2,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/67"},"html":{"href":"https://github.com/cappuccino/cappuccino.org/pull/67"},"issue":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/issues/67"},"comments":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/cappuccino/cappuccino.org/statuses/a93e6dffcdcd443a90dc249d26901ad1f529742b"}}}}
{"actor":{"display_login":"Dogild"}}