{"action":"created","comment":{"url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/comments/31241020","id":31241020,"diff_hunk":"@@ -1,2 +1,684 @@\n-# Objective-C-Style-Guide\n-Based off the NYTimes style guide (https://github.com/NYTimes/objective-c-style-guide). This style guide was morphed internally for A&amp;F.\n+# Abercrombie & Fitch: Objective-C Style Guide\n+\n+This style guide outlines the coding conventions of the iOS teams at A&F. This is base on the [NYTimes Objective-C Style Guide](https://github.com/NYTimes/objective-c-style-guide)\n+\n+\n+## Introduction\n+\n+Here are some of the documents from Apple that informed the style guide. If something isn’t mentioned here, it’s probably covered in great detail in one of these:\n+\n+* [The Objective-C Programming Language](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html)\n+* [Cocoa Fundamentals Guide](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaFundamentals/Introduction/Introduction.html)\n+* [Coding Guidelines for Cocoa](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html)\n+* [iOS App Programming Guide](http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/Introduction/Introduction.html)\n+\n+## Table of Contents\n+\n+* [Dot Notation Syntax](#dot-notation-syntax)\n+* [Spacing](#spacing)\n+* [Conditionals](#conditionals)\n+  * [Ternary Operator](#ternary-operator)\n+* [Error handling](#error-handling)\n+* [Methods](#methods)\n+* [Variables](#variables)\n+* [Naming](#naming)\n+  * [Categories](#categories)\n+* [Comments](#comments)\n+* [Init & Dealloc](#init-and-dealloc)\n+* [Literals](#literals)\n+* [CGRect Functions](#cgrect-functions)\n+* [Constants](#constants)\n+* [Enumerated Types](#enumerated-types)\n+* [Bitmasks](#bitmasks)\n+* [Private Properties](#private-properties)\n+* [Image Naming](#image-naming)\n+* [Booleans](#booleans)\n+* [Singletons](#singletons)\n+* [Imports](#imports)\n+* [Xcode Project](#xcode-project)\n+\n+## Dot Notation Syntax\n+\n+Dot notation should be used for accessing and mutating properties. Bracket notation is preferred in all other instances.\n+\n+**For example:**\n+```objc\n+view.backgroundColor = [UIColor orangeColor];\n+[UIApplication sharedApplication].delegate;\n+```\n+\n+**Not:**\n+```objc\n+[view setBackgroundColor:[UIColor orangeColor]];\n+UIApplication.sharedApplication.delegate;\n+```\n+\n+**Note:** Method notation is preferred when accessing an overridden getter or setter. This is in order to provide clarity that the value is being modified in some way before being set or returned. \n+\n+When accessing a property on self dot notation should be used. Expect in the case of an overridden getter or setter.\n+\n+**For example:**\n+```objc\n+self.backgroundColor = [UIColor orangeColor];\n+self.delegate;\n+```\n+\n+**Not:**\n+```objc\n+[self setBackgroundColor:[UIColor orangeColor]];","path":"README.md","position":70,"original_position":70,"commit_id":"1e7010758b44efbe609b0011d9d0ed7ab7f7ffcb","original_commit_id":"8f9ca8b3f851973bc3529daf7e09b1830fac184d","user":{"login":"chipsnyder","id":3384451,"avatar_url":"https://avatars.githubusercontent.com/u/3384451?v=3","gravatar_id":"","url":"https://api.github.com/users/chipsnyder","html_url":"https://github.com/chipsnyder","followers_url":"https://api.github.com/users/chipsnyder/followers","following_url":"https://api.github.com/users/chipsnyder/following{/other_user}","gists_url":"https://api.github.com/users/chipsnyder/gists{/gist_id}","starred_url":"https://api.github.com/users/chipsnyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chipsnyder/subscriptions","organizations_url":"https://api.github.com/users/chipsnyder/orgs","repos_url":"https://api.github.com/users/chipsnyder/repos","events_url":"https://api.github.com/users/chipsnyder/events{/privacy}","received_events_url":"https://api.github.com/users/chipsnyder/received_events","type":"User","site_admin":false},"body":"That's why it's in the *Not* section ","created_at":"2015-05-28T14:50:36Z","updated_at":"2015-05-28T14:50:36Z","html_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide/pull/1#discussion_r31241020","pull_request_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/comments/31241020"},"html":{"href":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide/pull/1#discussion_r31241020"},"pull_request":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/1","id":36408670,"html_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide/pull/1","diff_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide/pull/1.diff","patch_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide/pull/1.patch","issue_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues/1","number":1,"state":"open","locked":false,"title":"First push of Readme","user":{"login":"chipsnyder","id":3384451,"avatar_url":"https://avatars.githubusercontent.com/u/3384451?v=3","gravatar_id":"","url":"https://api.github.com/users/chipsnyder","html_url":"https://github.com/chipsnyder","followers_url":"https://api.github.com/users/chipsnyder/followers","following_url":"https://api.github.com/users/chipsnyder/following{/other_user}","gists_url":"https://api.github.com/users/chipsnyder/gists{/gist_id}","starred_url":"https://api.github.com/users/chipsnyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chipsnyder/subscriptions","organizations_url":"https://api.github.com/users/chipsnyder/orgs","repos_url":"https://api.github.com/users/chipsnyder/repos","events_url":"https://api.github.com/users/chipsnyder/events{/privacy}","received_events_url":"https://api.github.com/users/chipsnyder/received_events","type":"User","site_admin":false},"body":"Initial push of ReadMe discussed on during internal meeting.","created_at":"2015-05-28T13:54:28Z","updated_at":"2015-05-28T14:50:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f44e583fe138590f6e7c0911be0021ddb226b7a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/1/commits","review_comments_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/1/comments","review_comment_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues/1/comments","statuses_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/statuses/1e7010758b44efbe609b0011d9d0ed7ab7f7ffcb","head":{"label":"AbercrombieAndFitch:initial-commit","ref":"initial-commit","sha":"1e7010758b44efbe609b0011d9d0ed7ab7f7ffcb","user":{"login":"AbercrombieAndFitch","id":6653126,"avatar_url":"https://avatars.githubusercontent.com/u/6653126?v=3","gravatar_id":"","url":"https://api.github.com/users/AbercrombieAndFitch","html_url":"https://github.com/AbercrombieAndFitch","followers_url":"https://api.github.com/users/AbercrombieAndFitch/followers","following_url":"https://api.github.com/users/AbercrombieAndFitch/following{/other_user}","gists_url":"https://api.github.com/users/AbercrombieAndFitch/gists{/gist_id}","starred_url":"https://api.github.com/users/AbercrombieAndFitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbercrombieAndFitch/subscriptions","organizations_url":"https://api.github.com/users/AbercrombieAndFitch/orgs","repos_url":"https://api.github.com/users/AbercrombieAndFitch/repos","events_url":"https://api.github.com/users/AbercrombieAndFitch/events{/privacy}","received_events_url":"https://api.github.com/users/AbercrombieAndFitch/received_events","type":"Organization","site_admin":false},"repo":{"id":36441440,"name":"Objective-C-Style-Guide","full_name":"AbercrombieAndFitch/Objective-C-Style-Guide","owner":{"login":"AbercrombieAndFitch","id":6653126,"avatar_url":"https://avatars.githubusercontent.com/u/6653126?v=3","gravatar_id":"","url":"https://api.github.com/users/AbercrombieAndFitch","html_url":"https://github.com/AbercrombieAndFitch","followers_url":"https://api.github.com/users/AbercrombieAndFitch/followers","following_url":"https://api.github.com/users/AbercrombieAndFitch/following{/other_user}","gists_url":"https://api.github.com/users/AbercrombieAndFitch/gists{/gist_id}","starred_url":"https://api.github.com/users/AbercrombieAndFitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbercrombieAndFitch/subscriptions","organizations_url":"https://api.github.com/users/AbercrombieAndFitch/orgs","repos_url":"https://api.github.com/users/AbercrombieAndFitch/repos","events_url":"https://api.github.com/users/AbercrombieAndFitch/events{/privacy}","received_events_url":"https://api.github.com/users/AbercrombieAndFitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide","description":"Based off the NYTimes style guide (https://github.com/NYTimes/objective-c-style-guide). This style guide was morphed internally for A&F.","fork":false,"url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide","forks_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/forks","keys_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/teams","hooks_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/hooks","issue_events_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues/events{/number}","events_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/events","assignees_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/assignees{/user}","branches_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/branches{/branch}","tags_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/tags","blobs_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/statuses/{sha}","languages_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/languages","stargazers_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/stargazers","contributors_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/contributors","subscribers_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/subscribers","subscription_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/subscription","commits_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/contents/{+path}","compare_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/merges","archive_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/downloads","issues_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues{/number}","pulls_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls{/number}","milestones_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/milestones{/number}","notifications_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/labels{/name}","releases_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/releases{/id}","created_at":"2015-05-28T13:49:43Z","updated_at":"2015-05-28T13:49:43Z","pushed_at":"2015-05-28T14:29:35Z","git_url":"git://github.com/AbercrombieAndFitch/Objective-C-Style-Guide.git","ssh_url":"git@github.com:AbercrombieAndFitch/Objective-C-Style-Guide.git","clone_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide.git","svn_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AbercrombieAndFitch:master","ref":"master","sha":"24bd79a42232cf43b08ec07f7515226121db0054","user":{"login":"AbercrombieAndFitch","id":6653126,"avatar_url":"https://avatars.githubusercontent.com/u/6653126?v=3","gravatar_id":"","url":"https://api.github.com/users/AbercrombieAndFitch","html_url":"https://github.com/AbercrombieAndFitch","followers_url":"https://api.github.com/users/AbercrombieAndFitch/followers","following_url":"https://api.github.com/users/AbercrombieAndFitch/following{/other_user}","gists_url":"https://api.github.com/users/AbercrombieAndFitch/gists{/gist_id}","starred_url":"https://api.github.com/users/AbercrombieAndFitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbercrombieAndFitch/subscriptions","organizations_url":"https://api.github.com/users/AbercrombieAndFitch/orgs","repos_url":"https://api.github.com/users/AbercrombieAndFitch/repos","events_url":"https://api.github.com/users/AbercrombieAndFitch/events{/privacy}","received_events_url":"https://api.github.com/users/AbercrombieAndFitch/received_events","type":"Organization","site_admin":false},"repo":{"id":36441440,"name":"Objective-C-Style-Guide","full_name":"AbercrombieAndFitch/Objective-C-Style-Guide","owner":{"login":"AbercrombieAndFitch","id":6653126,"avatar_url":"https://avatars.githubusercontent.com/u/6653126?v=3","gravatar_id":"","url":"https://api.github.com/users/AbercrombieAndFitch","html_url":"https://github.com/AbercrombieAndFitch","followers_url":"https://api.github.com/users/AbercrombieAndFitch/followers","following_url":"https://api.github.com/users/AbercrombieAndFitch/following{/other_user}","gists_url":"https://api.github.com/users/AbercrombieAndFitch/gists{/gist_id}","starred_url":"https://api.github.com/users/AbercrombieAndFitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbercrombieAndFitch/subscriptions","organizations_url":"https://api.github.com/users/AbercrombieAndFitch/orgs","repos_url":"https://api.github.com/users/AbercrombieAndFitch/repos","events_url":"https://api.github.com/users/AbercrombieAndFitch/events{/privacy}","received_events_url":"https://api.github.com/users/AbercrombieAndFitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide","description":"Based off the NYTimes style guide (https://github.com/NYTimes/objective-c-style-guide). This style guide was morphed internally for A&F.","fork":false,"url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide","forks_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/forks","keys_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/teams","hooks_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/hooks","issue_events_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues/events{/number}","events_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/events","assignees_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/assignees{/user}","branches_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/branches{/branch}","tags_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/tags","blobs_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/statuses/{sha}","languages_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/languages","stargazers_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/stargazers","contributors_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/contributors","subscribers_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/subscribers","subscription_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/subscription","commits_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/contents/{+path}","compare_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/merges","archive_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/downloads","issues_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues{/number}","pulls_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls{/number}","milestones_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/milestones{/number}","notifications_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/labels{/name}","releases_url":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/releases{/id}","created_at":"2015-05-28T13:49:43Z","updated_at":"2015-05-28T13:49:43Z","pushed_at":"2015-05-28T14:29:35Z","git_url":"git://github.com/AbercrombieAndFitch/Objective-C-Style-Guide.git","ssh_url":"git@github.com:AbercrombieAndFitch/Objective-C-Style-Guide.git","clone_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide.git","svn_url":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/1"},"html":{"href":"https://github.com/AbercrombieAndFitch/Objective-C-Style-Guide/pull/1"},"issue":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues/1"},"comments":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/AbercrombieAndFitch/Objective-C-Style-Guide/statuses/1e7010758b44efbe609b0011d9d0ed7ab7f7ffcb"}}}}