{"action":"opened","number":821,"pull_request":{"url":"https://api.github.com/repos/cinder/Cinder/pulls/821","id":33377017,"html_url":"https://github.com/cinder/Cinder/pull/821","diff_url":"https://github.com/cinder/Cinder/pull/821.diff","patch_url":"https://github.com/cinder/Cinder/pull/821.patch","issue_url":"https://api.github.com/repos/cinder/Cinder/issues/821","number":821,"state":"open","locked":false,"title":"avoid deprecated API to fetch OS version when possible","user":{"login":"pizthewiz","id":648369,"avatar_url":"https://avatars.githubusercontent.com/u/648369?v=3","gravatar_id":"","url":"https://api.github.com/users/pizthewiz","html_url":"https://github.com/pizthewiz","followers_url":"https://api.github.com/users/pizthewiz/followers","following_url":"https://api.github.com/users/pizthewiz/following{/other_user}","gists_url":"https://api.github.com/users/pizthewiz/gists{/gist_id}","starred_url":"https://api.github.com/users/pizthewiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pizthewiz/subscriptions","organizations_url":"https://api.github.com/users/pizthewiz/orgs","repos_url":"https://api.github.com/users/pizthewiz/repos","events_url":"https://api.github.com/users/pizthewiz/events{/privacy}","received_events_url":"https://api.github.com/users/pizthewiz/received_events","type":"User","site_admin":false},"body":"The `Gestalt` functions have been deprecated since 10.8 (and are said to incorrectly report 10.10 as 10.9, though I was unable to reproduce on 10.10.3) and API was added to `NSProcessInfo` to replace it. Though the API wasn't made public until OS X 10.10 / iOS 8, it is available on earlier releases (possibly backported when using newer base SDKs due to `Gestalt` being deprecated without a replacement) so the Objective-C runtime is used to divine availability and execute, falling back to `Gestalt` with the deprecation warning hushed.\r\n\r\nThe `NSProcessInfo` API is also available on iOS and is a bit cleaner than the `-[UIDevice systemVersion]` string parsing, so it is use when available, falling back to the `UIDevice` method.\r\n\r\nSo far, I have only tested on 10.10.3 / Xcode 6.3 building the OS X and iOS static libs, I'll fire up a VM and make sure things are good in 10.9 as well.","created_at":"2015-04-15T17:22:21Z","updated_at":"2015-04-15T17:22:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cinder/Cinder/pulls/821/commits","review_comments_url":"https://api.github.com/repos/cinder/Cinder/pulls/821/comments","review_comment_url":"https://api.github.com/repos/cinder/Cinder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cinder/Cinder/issues/821/comments","statuses_url":"https://api.github.com/repos/cinder/Cinder/statuses/031051c4b363fcb779268056b8a5441c9172956b","head":{"label":"pizthewiz:modern-os-version","ref":"modern-os-version","sha":"031051c4b363fcb779268056b8a5441c9172956b","user":{"login":"pizthewiz","id":648369,"avatar_url":"https://avatars.githubusercontent.com/u/648369?v=3","gravatar_id":"","url":"https://api.github.com/users/pizthewiz","html_url":"https://github.com/pizthewiz","followers_url":"https://api.github.com/users/pizthewiz/followers","following_url":"https://api.github.com/users/pizthewiz/following{/other_user}","gists_url":"https://api.github.com/users/pizthewiz/gists{/gist_id}","starred_url":"https://api.github.com/users/pizthewiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pizthewiz/subscriptions","organizations_url":"https://api.github.com/users/pizthewiz/orgs","repos_url":"https://api.github.com/users/pizthewiz/repos","events_url":"https://api.github.com/users/pizthewiz/events{/privacy}","received_events_url":"https://api.github.com/users/pizthewiz/received_events","type":"User","site_admin":false},"repo":{"id":8085518,"name":"Cinder","full_name":"pizthewiz/Cinder","owner":{"login":"pizthewiz","id":648369,"avatar_url":"https://avatars.githubusercontent.com/u/648369?v=3","gravatar_id":"","url":"https://api.github.com/users/pizthewiz","html_url":"https://github.com/pizthewiz","followers_url":"https://api.github.com/users/pizthewiz/followers","following_url":"https://api.github.com/users/pizthewiz/following{/other_user}","gists_url":"https://api.github.com/users/pizthewiz/gists{/gist_id}","starred_url":"https://api.github.com/users/pizthewiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pizthewiz/subscriptions","organizations_url":"https://api.github.com/users/pizthewiz/orgs","repos_url":"https://api.github.com/users/pizthewiz/repos","events_url":"https://api.github.com/users/pizthewiz/events{/privacy}","received_events_url":"https://api.github.com/users/pizthewiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pizthewiz/Cinder","description":"Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.","fork":true,"url":"https://api.github.com/repos/pizthewiz/Cinder","forks_url":"https://api.github.com/repos/pizthewiz/Cinder/forks","keys_url":"https://api.github.com/repos/pizthewiz/Cinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pizthewiz/Cinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pizthewiz/Cinder/teams","hooks_url":"https://api.github.com/repos/pizthewiz/Cinder/hooks","issue_events_url":"https://api.github.com/repos/pizthewiz/Cinder/issues/events{/number}","events_url":"https://api.github.com/repos/pizthewiz/Cinder/events","assignees_url":"https://api.github.com/repos/pizthewiz/Cinder/assignees{/user}","branches_url":"https://api.github.com/repos/pizthewiz/Cinder/branches{/branch}","tags_url":"https://api.github.com/repos/pizthewiz/Cinder/tags","blobs_url":"https://api.github.com/repos/pizthewiz/Cinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pizthewiz/Cinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pizthewiz/Cinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/pizthewiz/Cinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pizthewiz/Cinder/statuses/{sha}","languages_url":"https://api.github.com/repos/pizthewiz/Cinder/languages","stargazers_url":"https://api.github.com/repos/pizthewiz/Cinder/stargazers","contributors_url":"https://api.github.com/repos/pizthewiz/Cinder/contributors","subscribers_url":"https://api.github.com/repos/pizthewiz/Cinder/subscribers","subscription_url":"https://api.github.com/repos/pizthewiz/Cinder/subscription","commits_url":"https://api.github.com/repos/pizthewiz/Cinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/pizthewiz/Cinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/pizthewiz/Cinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/pizthewiz/Cinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/pizthewiz/Cinder/contents/{+path}","compare_url":"https://api.github.com/repos/pizthewiz/Cinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pizthewiz/Cinder/merges","archive_url":"https://api.github.com/repos/pizthewiz/Cinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pizthewiz/Cinder/downloads","issues_url":"https://api.github.com/repos/pizthewiz/Cinder/issues{/number}","pulls_url":"https://api.github.com/repos/pizthewiz/Cinder/pulls{/number}","milestones_url":"https://api.github.com/repos/pizthewiz/Cinder/milestones{/number}","notifications_url":"https://api.github.com/repos/pizthewiz/Cinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pizthewiz/Cinder/labels{/name}","releases_url":"https://api.github.com/repos/pizthewiz/Cinder/releases{/id}","created_at":"2013-02-08T01:29:25Z","updated_at":"2014-08-09T01:50:03Z","pushed_at":"2015-04-15T06:03:47Z","git_url":"git://github.com/pizthewiz/Cinder.git","ssh_url":"git@github.com:pizthewiz/Cinder.git","clone_url":"https://github.com/pizthewiz/Cinder.git","svn_url":"https://github.com/pizthewiz/Cinder","homepage":"http://libcinder.org","size":225382,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"cinder:glNext","ref":"glNext","sha":"d856daeb5497d62fc6452bc55c13c30c57505469","user":{"login":"cinder","id":154586,"avatar_url":"https://avatars.githubusercontent.com/u/154586?v=3","gravatar_id":"","url":"https://api.github.com/users/cinder","html_url":"https://github.com/cinder","followers_url":"https://api.github.com/users/cinder/followers","following_url":"https://api.github.com/users/cinder/following{/other_user}","gists_url":"https://api.github.com/users/cinder/gists{/gist_id}","starred_url":"https://api.github.com/users/cinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cinder/subscriptions","organizations_url":"https://api.github.com/users/cinder/orgs","repos_url":"https://api.github.com/users/cinder/repos","events_url":"https://api.github.com/users/cinder/events{/privacy}","received_events_url":"https://api.github.com/users/cinder/received_events","type":"User","site_admin":false},"repo":{"id":622127,"name":"Cinder","full_name":"cinder/Cinder","owner":{"login":"cinder","id":154586,"avatar_url":"https://avatars.githubusercontent.com/u/154586?v=3","gravatar_id":"","url":"https://api.github.com/users/cinder","html_url":"https://github.com/cinder","followers_url":"https://api.github.com/users/cinder/followers","following_url":"https://api.github.com/users/cinder/following{/other_user}","gists_url":"https://api.github.com/users/cinder/gists{/gist_id}","starred_url":"https://api.github.com/users/cinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cinder/subscriptions","organizations_url":"https://api.github.com/users/cinder/orgs","repos_url":"https://api.github.com/users/cinder/repos","events_url":"https://api.github.com/users/cinder/events{/privacy}","received_events_url":"https://api.github.com/users/cinder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cinder/Cinder","description":"Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.","fork":false,"url":"https://api.github.com/repos/cinder/Cinder","forks_url":"https://api.github.com/repos/cinder/Cinder/forks","keys_url":"https://api.github.com/repos/cinder/Cinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cinder/Cinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cinder/Cinder/teams","hooks_url":"https://api.github.com/repos/cinder/Cinder/hooks","issue_events_url":"https://api.github.com/repos/cinder/Cinder/issues/events{/number}","events_url":"https://api.github.com/repos/cinder/Cinder/events","assignees_url":"https://api.github.com/repos/cinder/Cinder/assignees{/user}","branches_url":"https://api.github.com/repos/cinder/Cinder/branches{/branch}","tags_url":"https://api.github.com/repos/cinder/Cinder/tags","blobs_url":"https://api.github.com/repos/cinder/Cinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cinder/Cinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cinder/Cinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/cinder/Cinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cinder/Cinder/statuses/{sha}","languages_url":"https://api.github.com/repos/cinder/Cinder/languages","stargazers_url":"https://api.github.com/repos/cinder/Cinder/stargazers","contributors_url":"https://api.github.com/repos/cinder/Cinder/contributors","subscribers_url":"https://api.github.com/repos/cinder/Cinder/subscribers","subscription_url":"https://api.github.com/repos/cinder/Cinder/subscription","commits_url":"https://api.github.com/repos/cinder/Cinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/cinder/Cinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/cinder/Cinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/cinder/Cinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/cinder/Cinder/contents/{+path}","compare_url":"https://api.github.com/repos/cinder/Cinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cinder/Cinder/merges","archive_url":"https://api.github.com/repos/cinder/Cinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cinder/Cinder/downloads","issues_url":"https://api.github.com/repos/cinder/Cinder/issues{/number}","pulls_url":"https://api.github.com/repos/cinder/Cinder/pulls{/number}","milestones_url":"https://api.github.com/repos/cinder/Cinder/milestones{/number}","notifications_url":"https://api.github.com/repos/cinder/Cinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cinder/Cinder/labels{/name}","releases_url":"https://api.github.com/repos/cinder/Cinder/releases{/id}","created_at":"2010-04-21T19:03:10Z","updated_at":"2015-04-14T05:14:44Z","pushed_at":"2015-04-15T16:04:55Z","git_url":"git://github.com/cinder/Cinder.git","ssh_url":"git@github.com:cinder/Cinder.git","clone_url":"https://github.com/cinder/Cinder.git","svn_url":"https://github.com/cinder/Cinder","homepage":"http://libcinder.org","size":324376,"stargazers_count":1967,"watchers_count":1967,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":473,"mirror_url":null,"open_issues_count":153,"forks":473,"open_issues":153,"watchers":1967,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/821"},"html":{"href":"https://github.com/cinder/Cinder/pull/821"},"issue":{"href":"https://api.github.com/repos/cinder/Cinder/issues/821"},"comments":{"href":"https://api.github.com/repos/cinder/Cinder/issues/821/comments"},"review_comments":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/821/comments"},"review_comment":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cinder/Cinder/pulls/821/commits"},"statuses":{"href":"https://api.github.com/repos/cinder/Cinder/statuses/031051c4b363fcb779268056b8a5441c9172956b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":63,"deletions":31,"changed_files":1}}