{"action":"reopened","issue":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/186","labels_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/186/comments","events_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/186/events","html_url":"https://github.com/NativeScript/ios-runtime/issues/186","id":87000224,"number":186,"title":"Transform (NSError **) parameters to JavaScript error throw","user":{"login":"ivanbuhov","id":2405533,"avatar_url":"https://avatars.githubusercontent.com/u/2405533?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanbuhov","html_url":"https://github.com/ivanbuhov","followers_url":"https://api.github.com/users/ivanbuhov/followers","following_url":"https://api.github.com/users/ivanbuhov/following{/other_user}","gists_url":"https://api.github.com/users/ivanbuhov/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanbuhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanbuhov/subscriptions","organizations_url":"https://api.github.com/users/ivanbuhov/orgs","repos_url":"https://api.github.com/users/ivanbuhov/repos","events_url":"https://api.github.com/users/ivanbuhov/events{/privacy}","received_events_url":"https://api.github.com/users/ivanbuhov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/ios-runtime/labels/5%20-%20Done","name":"5 - Done","color":"207de5"},{"url":"https://api.github.com/repos/NativeScript/ios-runtime/labels/S:Low","name":"S:Low","color":"eeeeee"},{"url":"https://api.github.com/repos/NativeScript/ios-runtime/labels/T:Feature","name":"T:Feature","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"jasssonpet","id":305639,"avatar_url":"https://avatars.githubusercontent.com/u/305639?v=3","gravatar_id":"","url":"https://api.github.com/users/jasssonpet","html_url":"https://github.com/jasssonpet","followers_url":"https://api.github.com/users/jasssonpet/followers","following_url":"https://api.github.com/users/jasssonpet/following{/other_user}","gists_url":"https://api.github.com/users/jasssonpet/gists{/gist_id}","starred_url":"https://api.github.com/users/jasssonpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasssonpet/subscriptions","organizations_url":"https://api.github.com/users/jasssonpet/orgs","repos_url":"https://api.github.com/users/jasssonpet/repos","events_url":"https://api.github.com/users/jasssonpet/events{/privacy}","received_events_url":"https://api.github.com/users/jasssonpet/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/milestones/7","html_url":"https://github.com/NativeScript/ios-runtime/milestones/1.2.0","labels_url":"https://api.github.com/repos/NativeScript/ios-runtime/milestones/7/labels","id":1168358,"number":7,"title":"1.2.0","description":"","creator":{"login":"valentinstoychev","id":4980822,"avatar_url":"https://avatars.githubusercontent.com/u/4980822?v=3","gravatar_id":"","url":"https://api.github.com/users/valentinstoychev","html_url":"https://github.com/valentinstoychev","followers_url":"https://api.github.com/users/valentinstoychev/followers","following_url":"https://api.github.com/users/valentinstoychev/following{/other_user}","gists_url":"https://api.github.com/users/valentinstoychev/gists{/gist_id}","starred_url":"https://api.github.com/users/valentinstoychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentinstoychev/subscriptions","organizations_url":"https://api.github.com/users/valentinstoychev/orgs","repos_url":"https://api.github.com/users/valentinstoychev/repos","events_url":"https://api.github.com/users/valentinstoychev/events{/privacy}","received_events_url":"https://api.github.com/users/valentinstoychev/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":11,"state":"open","created_at":"2015-06-17T11:05:49Z","updated_at":"2015-07-13T12:17:17Z","due_on":"2015-07-21T21:00:00Z","closed_at":null},"comments":11,"created_at":"2015-06-10T15:04:47Z","updated_at":"2015-07-13T12:17:17Z","closed_at":null,"body":"Obj-C methods which return `BOOL` and have(`NSError **`/`CFErrorRef*`) as last parameter should be exposed as methods without the last parameter and have to throw JavaScript error on failure (the same convention is used in Swift 2).\r\n\r\nPRs:\r\n* https://github.com/NativeScript/ios-runtime/pull/208\r\n* https://github.com/NativeScript/ios-metadata-generator/pull/8\r\n* https://github.com/NativeScript/ios-metadata-generator/pull/9\r\n* https://github.com/NativeScript/ios-runtime-docs/pull/33\r\n* https://github.com/NativeScript/NativeScript/pull/404\r\n\r\nSubtasks:\r\n* [x] Research Swift 2 projection\r\n* [x] Discuss possible NativeScript projections\r\n* [x] Implement calling of such methods\r\n* [x] Implement overriding of such methods\r\n* [x] Implement exposing of such methods\r\n* [x] Implement swizzling of such methods\r\n* ~~Implement constructor calls of such initializers~~\r\n* [x] Update TypeScript definitions\r\n* [x] Write tests for all cases\r\n* [x] Update documentation\r\n* [ ] Make PR in modules to use the new features"}}