{"action":"created","issue":{"url":"https://api.github.com/repos/Oblong/OBDragDrop/issues/16","labels_url":"https://api.github.com/repos/Oblong/OBDragDrop/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Oblong/OBDragDrop/issues/16/comments","events_url":"https://api.github.com/repos/Oblong/OBDragDrop/issues/16/events","html_url":"https://github.com/Oblong/OBDragDrop/issues/16","id":58540751,"number":16,"title":"OBDragDropManager EXC_BAD_ACCESS crash","user":{"login":"hishamabri","id":5760752,"avatar_url":"https://avatars.githubusercontent.com/u/5760752?v=3","gravatar_id":"","url":"https://api.github.com/users/hishamabri","html_url":"https://github.com/hishamabri","followers_url":"https://api.github.com/users/hishamabri/followers","following_url":"https://api.github.com/users/hishamabri/following{/other_user}","gists_url":"https://api.github.com/users/hishamabri/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamabri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamabri/subscriptions","organizations_url":"https://api.github.com/users/hishamabri/orgs","repos_url":"https://api.github.com/users/hishamabri/repos","events_url":"https://api.github.com/users/hishamabri/events{/privacy}","received_events_url":"https://api.github.com/users/hishamabri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-23T04:17:43Z","updated_at":"2015-04-13T10:26:17Z","closed_at":"2015-04-11T03:02:49Z","body":"Hi\r\n\r\n\r\nThanks for the great library\r\nI keep getting this error EXC_BAD_ACCESS on this function:\r\n\r\n-(BOOL) ovumRecognizerShouldHandleTouch:(UIGestureRecognizer <OBDragDropGestureRecognizer>*)recognizer {\r\n    if (recognizer.state == UIGestureRecognizerStateBegan) {\r\n        id<OBOvumSource> ovumSource = recognizer.ovumSource;\r\n        \r\n        if ([ovumSource respondsToSelector:@selector(shouldCreateOvumFromView:)] && //On this line\r\n            ![ovumSource shouldCreateOvumFromView:recognizer.view])\r\n        {\r\n            // Workaround to cancel the gesture recognizer\r\n            recognizer.enabled = NO;\r\n            recognizer.enabled = YES;\r\n            return NO;\r\n        }\r\n        return YES;\r\n    }\r\n    \r\n    return recognizer.ovum != nil;\r\n}\r\n\r\n\r\nI am using the gesture recognizer on UITableViewCells.\r\n\r\nWhen the application goes to the background and comes back to the foreground, if I touch one of the cells (most of the time) it will crash the app.\r\nThe ovumSource in the gesture recognizer is held with an assign attribute, so they are naturally not strongly holding the object.\r\n\r\nMy OvumSource object is strongly held by my TableViewController.\r\n\r\nAny ideas?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Oblong/OBDragDrop/issues/comments/92302229","html_url":"https://github.com/Oblong/OBDragDrop/issues/16#issuecomment-92302229","issue_url":"https://api.github.com/repos/Oblong/OBDragDrop/issues/16","id":92302229,"user":{"login":"zaichang","id":581944,"avatar_url":"https://avatars.githubusercontent.com/u/581944?v=3","gravatar_id":"","url":"https://api.github.com/users/zaichang","html_url":"https://github.com/zaichang","followers_url":"https://api.github.com/users/zaichang/followers","following_url":"https://api.github.com/users/zaichang/following{/other_user}","gists_url":"https://api.github.com/users/zaichang/gists{/gist_id}","starred_url":"https://api.github.com/users/zaichang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaichang/subscriptions","organizations_url":"https://api.github.com/users/zaichang/orgs","repos_url":"https://api.github.com/users/zaichang/repos","events_url":"https://api.github.com/users/zaichang/events{/privacy}","received_events_url":"https://api.github.com/users/zaichang/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T10:26:17Z","updated_at":"2015-04-13T10:26:17Z","body":"Hey there,\r\n\r\nAre you referring to the protocol definition of OBDragDropGestureRecognizer? I do see that we're using retain/assign instead of strong/weak ... the change makes sense since the weak reference would prevent the crashes you're seeing.\r\n\r\nI can change it from my end, or if you'd like submit a pull request and I'll merge it.\r\n"}}