{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/6556","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/6556/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/6556/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/6556/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/6556","id":113952109,"number":6556,"title":"23305966: Offered NSService freezes in own app","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:other%20bug","name":"classification:other bug","color":"e11d21"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/15","html_url":"https://github.com/lionheart/openradar-mirror/milestones/OS%20X%20SDK","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/15/labels","id":1237429,"number":15,"title":"OS X SDK","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":175,"closed_issues":1,"state":"open","created_at":"2015-08-03T02:08:38Z","updated_at":"2015-10-29T00:03:31Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-10-29T00:03:31Z","updated_at":"2015-10-29T00:03:31Z","closed_at":null,"body":"#### Description\n\nI have attached an app with source code that demonstrates an issue with OS Services I like to solve:\r\n\r\nThe app both offers a service that returns a text (taking no input)\r\nand also uses the Services itself.\r\n\r\nThe issue is that the app shows its own offered service in its\r\nServices menus (which isn't desired).\r\n\r\nBut even worse, if the user\r\nchooses the service, the app does not get its Service handler\r\ninvoked until a timeout is reached, after which a cryptic error\r\nmessage is shown to the user.\r\n\r\nIdeally, it would be great if I could hide my offered services from my \r\napp's Services menu, because I want to offer my service only to other apps. But since I want to offer my service to ALL other apps, I believe one cannot control this \"all but me\" via the documented options for the Services dict in the Info.plist.\r\nI also found no way to dynamically disable my services when my app is front, because it appears that the Services menu gets created statically from the Info.plist, and I cannot change that while my app runs, right?\r\n\r\nIf I cannot hide my own service from the Services menu, the second option would be to at least avoid the odd timeout issue that's caused if the user chooses the service inside my app. I found that if I do not declare the readSelectionFromPasteboard: method at all, then my service gets called, which is odd, - but that's solution because then I would not be able to handle other Services in my app properly, either.\r\n\r\nSteps to Reproduce:\r\nTo test this effect, first verify that the offered service works\r\nin other apps: Run this app, then open a text editor and use its\r\nServices menu, choosing \"• test: get text •\". This invokes this\r\napp's testGetText: method and returns the text \"text from service\"\r\nto the editor. This proves that it works, in general.\r\n\r\nNow use the Services menu in this app, choosing \"• test: get text •\"\r\nagain. This time, nothing happens but instead an error message gets\r\ndisplayed after the timeout that's set in the Info.plist file for\r\nthe service.\r\n\r\nAttachment download: http://files.tempel.org/Various/radar-23305966.zip\n\n-\nProduct Version: 10.11\nCreated: 2015-10-28T23:27:43.844230\nOriginated: 2015-10-29T00:00:00\nOpen Radar Link: http://www.openradar.me/23305966"}}