{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/3223","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3223/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3223/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3223/events","html_url":"https://github.com/realm/realm-cocoa/issues/3223","id":134032135,"number":3223,"title":"Update docs to reflect the proper way to set NSFileProtection attributes","user":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/S:P1%20Backlog","name":"S:P1 Backlog","color":"dedede"},{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Doc","name":"T:Doc","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"TimOliver","id":429119,"avatar_url":"https://avatars.githubusercontent.com/u/429119?v=3","gravatar_id":"","url":"https://api.github.com/users/TimOliver","html_url":"https://github.com/TimOliver","followers_url":"https://api.github.com/users/TimOliver/followers","following_url":"https://api.github.com/users/TimOliver/following{/other_user}","gists_url":"https://api.github.com/users/TimOliver/gists{/gist_id}","starred_url":"https://api.github.com/users/TimOliver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimOliver/subscriptions","organizations_url":"https://api.github.com/users/TimOliver/orgs","repos_url":"https://api.github.com/users/TimOliver/repos","events_url":"https://api.github.com/users/TimOliver/events{/privacy}","received_events_url":"https://api.github.com/users/TimOliver/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-16T16:48:06Z","updated_at":"2016-03-29T18:28:34Z","closed_at":"2016-03-29T18:28:34Z","body":"We currently recommend to set them on the main Realm file and all auxiliary files in the [Encryption](https://realm.io/docs/objc/latest/#encryption) section of the docs.\r\n\r\nIn reality, we should be recommending that they be set on the Realm file's parent directory and that a subdirectory should be used if there are other files in that directory that shouldn't share those same attributes.\r\n\r\nWe should also update that section since those attributes are already set to encrypt the file by default as of iOS 8 (I *think*), so it's currently incorrect."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/203039255","html_url":"https://github.com/realm/realm-cocoa/issues/3223#issuecomment-203039255","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3223","id":203039255,"user":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T18:28:34Z","updated_at":"2016-03-29T18:28:34Z","body":"This was done in https://github.com/realm/realm.io/pull/1791 and is now available at https://realm.io/docs/swift/latest/#using-realm-with-background-app-refresh"}}