{"action":"created","comment":{"url":"https://api.github.com/repos/servo/rust-cocoa/pulls/comments/24315339","id":24315339,"diff_hunk":"@@ -2211,3 +2211,310 @@ impl NSScreen for id {\n         msg_send_stret()(self, selector(\"convertRectToBacking:\"), aRect)\n     }\n }\n+\n+#[repr(u64)]\n+pub enum NSTabViewType {\n+    NSTopTabsBezelBorder     = 0,\n+    NSLeftTabsBezelBorder    = 1,\n+    NSBottomTabsBezelBorder  = 2,\n+    NSRightTabsBezelBorder   = 3,\n+    NSNoTabsBezelBorder      = 4,\n+    NSNoTabsLineBorder       = 5,\n+    NSNoTabsNoBorder         = 6\n+}\n+\n+pub trait NSTabView {\n+    unsafe fn new(_: Self) -> id {\n+        msg_send()(class(\"NSTabView\"), selector(\"new\"))\n+    }\n+    unsafe fn initWithFrame_(self, frameRect: NSRect) -> id;\n+    unsafe fn addTabViewItem_(self, tabViewItem: id);\n+    unsafe fn insertTabViewItem_atIndex_(self,tabViewItem:id, index:NSInteger);\n+    unsafe fn removeTabViewItem_(self,tabViewItem:id);\n+\n+    unsafe fn indexOfTabViewItem_(self, tabViewItem:id) -> id;\n+    unsafe fn indexOfTabViewItemWithIdentifier_(self,identifier:id) -> id;\n+    unsafe fn numberOfTabViewItems(self) -> id;\n+    unsafe fn tabViewItemAtIndex_(self,index:id) -> id;\n+\n+    unsafe fn tabViewItems(self) -> id;\n+\n+    unsafe fn selectFirstTabViewItem_(self,sender:id);\n+    unsafe fn selectLastTabViewItem_(self,sender:id);\n+    unsafe fn selectNextTabViewItem_(self, sender:id);\n+    unsafe fn selectPreviousTabViewItem_(self,sender:id);\n+    unsafe fn selectTabViewItem_(self,tabViewItem:id);\n+    unsafe fn selectTabViewItemAtIndex_(self,index:id);\n+    unsafe fn selectTabViewItemWithIdentifier_(self,identifier:id);\n+    unsafe fn selectedTabViewItem(self) -> id;\n+    unsafe fn takeSelectedTabViewItemFromSender_(self,sender:id);\n+\n+    unsafe fn font(self) -> id;\n+    unsafe fn setFont_(self, font:id);\n+\n+    unsafe fn tabViewType(self) -> NSTabViewType;\n+    unsafe fn setTabViewType_(self,tabViewType: NSTabViewType);\n+\n+    unsafe fn controlTint(self) -> id;\n+    unsafe fn setControlTint_(self,controlTint:id);\n+\n+    unsafe fn drawsBackground(self) -> BOOL;\n+    unsafe fn setDrawsBackground_(self,drawsBackground:BOOL);\n+\n+    unsafe fn minimumSize(self) -> id;\n+    unsafe fn contentRect(self) -> id;\n+    unsafe fn controlSize(self) -> id;\n+    unsafe fn setControlSize_(self,controlSize:id);\n+    \n+    unsafe fn allowsTruncatedLabels(self) -> BOOL;\n+    unsafe fn setAllowsTruncatedLabels_(self, allowTruncatedLabels:BOOL);\n+\n+    unsafe fn setDelegate_(self, delegate:id);\n+    unsafe fn delegate(self) -> id ;\n+\n+    unsafe fn tabViewAtPoint_(self, point:id) -> id;\n+\n+\n+}\n+\n+impl NSTabView for id {\n+\n+    unsafe fn initWithFrame_(self, frameRect: NSRect) -> id {\n+        msg_send()(self, selector(\"initWithFrame:\"), frameRect)\n+    }\n+\n+    unsafe fn addTabViewItem_(self, tabViewItem: id) {\n+        msg_send()(self, selector(\"addTabViewItem:\"), tabViewItem)\n+    }\n+    unsafe fn insertTabViewItem_atIndex_(self, tabViewItem: id,index:NSInteger) {","path":"src/appkit.rs","position":79,"original_position":79,"commit_id":"a346846fd8042913590a43c74fff108015d3f4b6","original_commit_id":"a346846fd8042913590a43c74fff108015d3f4b6","user":{"login":"bjz","id":695077,"avatar_url":"https://avatars.githubusercontent.com/u/695077?v=3","gravatar_id":"","url":"https://api.github.com/users/bjz","html_url":"https://github.com/bjz","followers_url":"https://api.github.com/users/bjz/followers","following_url":"https://api.github.com/users/bjz/following{/other_user}","gists_url":"https://api.github.com/users/bjz/gists{/gist_id}","starred_url":"https://api.github.com/users/bjz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjz/subscriptions","organizations_url":"https://api.github.com/users/bjz/orgs","repos_url":"https://api.github.com/users/bjz/repos","events_url":"https://api.github.com/users/bjz/events{/privacy}","received_events_url":"https://api.github.com/users/bjz/received_events","type":"User","site_admin":false},"body":"Whatch your formatting - there are lots of missing spaces.","created_at":"2015-02-09T09:07:22Z","updated_at":"2015-02-09T09:07:22Z","html_url":"https://github.com/servo/rust-cocoa/pull/62#discussion_r24315339","pull_request_url":"https://api.github.com/repos/servo/rust-cocoa/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/servo/rust-cocoa/pulls/comments/24315339"},"html":{"href":"https://github.com/servo/rust-cocoa/pull/62#discussion_r24315339"},"pull_request":{"href":"https://api.github.com/repos/servo/rust-cocoa/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/servo/rust-cocoa/pulls/62","id":28872194,"html_url":"https://github.com/servo/rust-cocoa/pull/62","diff_url":"https://github.com/servo/rust-cocoa/pull/62.diff","patch_url":"https://github.com/servo/rust-cocoa/pull/62.patch","issue_url":"https://api.github.com/repos/servo/rust-cocoa/issues/62","number":62,"state":"open","locked":false,"title":"Implemented NSTabView and NSTabViewItem. Simple example included.","user":{"login":"rafaelbarbosa","id":1644834,"avatar_url":"https://avatars.githubusercontent.com/u/1644834?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelbarbosa","html_url":"https://github.com/rafaelbarbosa","followers_url":"https://api.github.com/users/rafaelbarbosa/followers","following_url":"https://api.github.com/users/rafaelbarbosa/following{/other_user}","gists_url":"https://api.github.com/users/rafaelbarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelbarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelbarbosa/subscriptions","organizations_url":"https://api.github.com/users/rafaelbarbosa/orgs","repos_url":"https://api.github.com/users/rafaelbarbosa/repos","events_url":"https://api.github.com/users/rafaelbarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelbarbosa/received_events","type":"User","site_admin":false},"body":"Hi, I'm planning on implementing most of the AppKit classes to use in an application i'm developing.\r\n\r\nI've implemented these two classes as some sort of feasability demo, I will move to more interesting components now, probably using some kind of automated method, as the process is relatively simple.\r\n\r\nI think there is value in having these and the rest of the AppKit classes implemented in this repo to avoid fragmentation, but if this is not the direction you have in mind for the repo I have no issue with maintaining my own fork.\r\n\r\nPlease let me know as I would be very happy to contribute. :)\r\n\r\nThanks!","created_at":"2015-02-07T23:33:20Z","updated_at":"2015-02-09T09:07:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"814b0d0d87206e4256491b181eebcb4725f3b45d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/servo/rust-cocoa/pulls/62/commits","review_comments_url":"https://api.github.com/repos/servo/rust-cocoa/pulls/62/comments","review_comment_url":"https://api.github.com/repos/servo/rust-cocoa/pulls/comments/{number}","comments_url":"https://api.github.com/repos/servo/rust-cocoa/issues/62/comments","statuses_url":"https://api.github.com/repos/servo/rust-cocoa/statuses/a346846fd8042913590a43c74fff108015d3f4b6","head":{"label":"rafaelbarbosa:master","ref":"master","sha":"a346846fd8042913590a43c74fff108015d3f4b6","user":{"login":"rafaelbarbosa","id":1644834,"avatar_url":"https://avatars.githubusercontent.com/u/1644834?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelbarbosa","html_url":"https://github.com/rafaelbarbosa","followers_url":"https://api.github.com/users/rafaelbarbosa/followers","following_url":"https://api.github.com/users/rafaelbarbosa/following{/other_user}","gists_url":"https://api.github.com/users/rafaelbarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelbarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelbarbosa/subscriptions","organizations_url":"https://api.github.com/users/rafaelbarbosa/orgs","repos_url":"https://api.github.com/users/rafaelbarbosa/repos","events_url":"https://api.github.com/users/rafaelbarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelbarbosa/received_events","type":"User","site_admin":false},"repo":{"id":30116366,"name":"rust-cocoa","full_name":"rafaelbarbosa/rust-cocoa","owner":{"login":"rafaelbarbosa","id":1644834,"avatar_url":"https://avatars.githubusercontent.com/u/1644834?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelbarbosa","html_url":"https://github.com/rafaelbarbosa","followers_url":"https://api.github.com/users/rafaelbarbosa/followers","following_url":"https://api.github.com/users/rafaelbarbosa/following{/other_user}","gists_url":"https://api.github.com/users/rafaelbarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelbarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelbarbosa/subscriptions","organizations_url":"https://api.github.com/users/rafaelbarbosa/orgs","repos_url":"https://api.github.com/users/rafaelbarbosa/repos","events_url":"https://api.github.com/users/rafaelbarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelbarbosa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rafaelbarbosa/rust-cocoa","description":"Cocoa/Objective-C bindings for the Rust programming language","fork":true,"url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa","forks_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/forks","keys_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/teams","hooks_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/hooks","issue_events_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/issues/events{/number}","events_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/events","assignees_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/assignees{/user}","branches_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/branches{/branch}","tags_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/tags","blobs_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/git/refs{/sha}","trees_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/statuses/{sha}","languages_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/languages","stargazers_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/stargazers","contributors_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/contributors","subscribers_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/subscribers","subscription_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/subscription","commits_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/commits{/sha}","git_commits_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/git/commits{/sha}","comments_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/comments{/number}","issue_comment_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/issues/comments/{number}","contents_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/contents/{+path}","compare_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/merges","archive_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/downloads","issues_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/issues{/number}","pulls_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/pulls{/number}","milestones_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/milestones{/number}","notifications_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/labels{/name}","releases_url":"https://api.github.com/repos/rafaelbarbosa/rust-cocoa/releases{/id}","created_at":"2015-01-31T15:33:38Z","updated_at":"2015-02-07T23:21:04Z","pushed_at":"2015-02-07T23:21:04Z","git_url":"git://github.com/rafaelbarbosa/rust-cocoa.git","ssh_url":"git@github.com:rafaelbarbosa/rust-cocoa.git","clone_url":"https://github.com/rafaelbarbosa/rust-cocoa.git","svn_url":"https://github.com/rafaelbarbosa/rust-cocoa","homepage":"","size":229,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":"servo:master","ref":"master","sha":"c59c4cb750b8a5dac47681c0b5040dd38eb4fec9","user":{"login":"servo","id":2566135,"avatar_url":"https://avatars.githubusercontent.com/u/2566135?v=3","gravatar_id":"","url":"https://api.github.com/users/servo","html_url":"https://github.com/servo","followers_url":"https://api.github.com/users/servo/followers","following_url":"https://api.github.com/users/servo/following{/other_user}","gists_url":"https://api.github.com/users/servo/gists{/gist_id}","starred_url":"https://api.github.com/users/servo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servo/subscriptions","organizations_url":"https://api.github.com/users/servo/orgs","repos_url":"https://api.github.com/users/servo/repos","events_url":"https://api.github.com/users/servo/events{/privacy}","received_events_url":"https://api.github.com/users/servo/received_events","type":"Organization","site_admin":false},"repo":{"id":3935579,"name":"rust-cocoa","full_name":"servo/rust-cocoa","owner":{"login":"servo","id":2566135,"avatar_url":"https://avatars.githubusercontent.com/u/2566135?v=3","gravatar_id":"","url":"https://api.github.com/users/servo","html_url":"https://github.com/servo","followers_url":"https://api.github.com/users/servo/followers","following_url":"https://api.github.com/users/servo/following{/other_user}","gists_url":"https://api.github.com/users/servo/gists{/gist_id}","starred_url":"https://api.github.com/users/servo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servo/subscriptions","organizations_url":"https://api.github.com/users/servo/orgs","repos_url":"https://api.github.com/users/servo/repos","events_url":"https://api.github.com/users/servo/events{/privacy}","received_events_url":"https://api.github.com/users/servo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/servo/rust-cocoa","description":"Cocoa/Objective-C bindings for the Rust programming language","fork":false,"url":"https://api.github.com/repos/servo/rust-cocoa","forks_url":"https://api.github.com/repos/servo/rust-cocoa/forks","keys_url":"https://api.github.com/repos/servo/rust-cocoa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/servo/rust-cocoa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/servo/rust-cocoa/teams","hooks_url":"https://api.github.com/repos/servo/rust-cocoa/hooks","issue_events_url":"https://api.github.com/repos/servo/rust-cocoa/issues/events{/number}","events_url":"https://api.github.com/repos/servo/rust-cocoa/events","assignees_url":"https://api.github.com/repos/servo/rust-cocoa/assignees{/user}","branches_url":"https://api.github.com/repos/servo/rust-cocoa/branches{/branch}","tags_url":"https://api.github.com/repos/servo/rust-cocoa/tags","blobs_url":"https://api.github.com/repos/servo/rust-cocoa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/servo/rust-cocoa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/servo/rust-cocoa/git/refs{/sha}","trees_url":"https://api.github.com/repos/servo/rust-cocoa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/servo/rust-cocoa/statuses/{sha}","languages_url":"https://api.github.com/repos/servo/rust-cocoa/languages","stargazers_url":"https://api.github.com/repos/servo/rust-cocoa/stargazers","contributors_url":"https://api.github.com/repos/servo/rust-cocoa/contributors","subscribers_url":"https://api.github.com/repos/servo/rust-cocoa/subscribers","subscription_url":"https://api.github.com/repos/servo/rust-cocoa/subscription","commits_url":"https://api.github.com/repos/servo/rust-cocoa/commits{/sha}","git_commits_url":"https://api.github.com/repos/servo/rust-cocoa/git/commits{/sha}","comments_url":"https://api.github.com/repos/servo/rust-cocoa/comments{/number}","issue_comment_url":"https://api.github.com/repos/servo/rust-cocoa/issues/comments/{number}","contents_url":"https://api.github.com/repos/servo/rust-cocoa/contents/{+path}","compare_url":"https://api.github.com/repos/servo/rust-cocoa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/servo/rust-cocoa/merges","archive_url":"https://api.github.com/repos/servo/rust-cocoa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/servo/rust-cocoa/downloads","issues_url":"https://api.github.com/repos/servo/rust-cocoa/issues{/number}","pulls_url":"https://api.github.com/repos/servo/rust-cocoa/pulls{/number}","milestones_url":"https://api.github.com/repos/servo/rust-cocoa/milestones{/number}","notifications_url":"https://api.github.com/repos/servo/rust-cocoa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/servo/rust-cocoa/labels{/name}","releases_url":"https://api.github.com/repos/servo/rust-cocoa/releases{/id}","created_at":"2012-04-05T02:49:21Z","updated_at":"2015-02-09T06:28:49Z","pushed_at":"2015-02-09T06:28:49Z","git_url":"git://github.com/servo/rust-cocoa.git","ssh_url":"git@github.com:servo/rust-cocoa.git","clone_url":"https://github.com/servo/rust-cocoa.git","svn_url":"https://github.com/servo/rust-cocoa","homepage":"","size":752,"stargazers_count":95,"watchers_count":95,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":5,"forks":30,"open_issues":5,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/servo/rust-cocoa/pulls/62"},"html":{"href":"https://github.com/servo/rust-cocoa/pull/62"},"issue":{"href":"https://api.github.com/repos/servo/rust-cocoa/issues/62"},"comments":{"href":"https://api.github.com/repos/servo/rust-cocoa/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/servo/rust-cocoa/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/servo/rust-cocoa/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/servo/rust-cocoa/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/servo/rust-cocoa/statuses/a346846fd8042913590a43c74fff108015d3f4b6"}}}}