{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/osx-trash/issues/4","labels_url":"https://api.github.com/repos/sindresorhus/osx-trash/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/osx-trash/issues/4/comments","events_url":"https://api.github.com/repos/sindresorhus/osx-trash/issues/4/events","html_url":"https://github.com/sindresorhus/osx-trash/issues/4","id":111565457,"number":4,"title":"`Put back` only works for the first file","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sindresorhus/osx-trash/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/sindresorhus/osx-trash/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-15T08:07:47Z","updated_at":"2015-10-16T08:13:10Z","closed_at":null,"body":"Continued from https://github.com/sindresorhus/trash/issues/24. This is a really weird issue.\r\n\r\n-\r\n\r\nOnly the first file trashed with `trashItemAtURL` in a process will have the ability to `Put back` from the trash. I've narrowed down the code and the below still only adds `Put back` for the first file `foo`:\r\n\r\n```objective-c\r\n@import Foundation;\r\n\r\nint main() {\r\n\t[[[NSFileManager alloc] init] trashItemAtURL:[NSURL URLWithString:@\"file:///Users/sindresorhus/dev/osx-trash/foo\"] resultingItemURL:nil error:nil];\r\n\t[[[NSFileManager alloc] init] trashItemAtURL:[NSURL URLWithString:@\"file:///Users/sindresorhus/dev/osx-trash/bar\"] resultingItemURL:nil error:nil];\r\n\r\n\treturn 0;\r\n}\r\n```\r\n\r\n-\r\n\r\nI'm starting to think this is a OS X bug. Would appriciate being proved wrong, though. Gonna open an issue on radar when I get a chance, unless someone can figure this out."},"comment":{"url":"https://api.github.com/repos/sindresorhus/osx-trash/issues/comments/148648229","html_url":"https://github.com/sindresorhus/osx-trash/issues/4#issuecomment-148648229","issue_url":"https://api.github.com/repos/sindresorhus/osx-trash/issues/4","id":148648229,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T08:13:10Z","updated_at":"2015-10-16T08:13:10Z","body":"@thomassnielsen Just to make sure the problem is not with reusing the `defaultManager`. That's not the problem, though."}}