{"action":"created","issue":{"url":"https://api.github.com/repos/DenHeadless/DTTableViewManager/issues/34","repository_url":"https://api.github.com/repos/DenHeadless/DTTableViewManager","labels_url":"https://api.github.com/repos/DenHeadless/DTTableViewManager/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/DenHeadless/DTTableViewManager/issues/34/comments","events_url":"https://api.github.com/repos/DenHeadless/DTTableViewManager/issues/34/events","html_url":"https://github.com/DenHeadless/DTTableViewManager/issues/34","id":142289448,"number":34,"title":"manager.whenSelected not work","user":{"login":"andrewSvsg","id":16840841,"avatar_url":"https://avatars.githubusercontent.com/u/16840841?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewSvsg","html_url":"https://github.com/andrewSvsg","followers_url":"https://api.github.com/users/andrewSvsg/followers","following_url":"https://api.github.com/users/andrewSvsg/following{/other_user}","gists_url":"https://api.github.com/users/andrewSvsg/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewSvsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewSvsg/subscriptions","organizations_url":"https://api.github.com/users/andrewSvsg/orgs","repos_url":"https://api.github.com/users/andrewSvsg/repos","events_url":"https://api.github.com/users/andrewSvsg/events{/privacy}","received_events_url":"https://api.github.com/users/andrewSvsg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DenHeadless/DTTableViewManager/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/DenHeadless/DTTableViewManager/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"e6e6e6"}],"state":"open","locked":false,"assignee":{"login":"DenHeadless","id":853604,"avatar_url":"https://avatars.githubusercontent.com/u/853604?v=3","gravatar_id":"","url":"https://api.github.com/users/DenHeadless","html_url":"https://github.com/DenHeadless","followers_url":"https://api.github.com/users/DenHeadless/followers","following_url":"https://api.github.com/users/DenHeadless/following{/other_user}","gists_url":"https://api.github.com/users/DenHeadless/gists{/gist_id}","starred_url":"https://api.github.com/users/DenHeadless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenHeadless/subscriptions","organizations_url":"https://api.github.com/users/DenHeadless/orgs","repos_url":"https://api.github.com/users/DenHeadless/repos","events_url":"https://api.github.com/users/DenHeadless/events{/privacy}","received_events_url":"https://api.github.com/users/DenHeadless/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-03-21T08:58:03Z","updated_at":"2016-03-21T11:17:15Z","closed_at":null,"body":"I use my custom cell class LabelCell in storyboard\r\nThis is setup method\r\n```\r\nfunc setupTable() {\r\n    manager.startManagingWithDelegate(self)\r\n    manager.registerCellClass(ParamValueCell.self)\r\n    manager.whenSelected(ParamValueCell.self){ postCell, post, indexPath in\r\n      print(\"Selected \\(post) in \\(postCell) at \\(indexPath)\")\r\n    }\r\n  }\r\n```\r\n\r\nI fill cells and they appear in table\r\nbut \"manager.whenSelected\" not work and  \r\n`print(\"Selected \\(post) in \\(postCell) at \\(indexPath)\")` - never called \r\n\r\n\r\nIn debug seems that fail in next place\r\n```\r\nfunc reactionsOfType(type: UIReactionType, forView view: Any) -> [UIReaction] {\r\n    ....\r\n    //fail in this place\r\n    reaction.viewClass == unwrappedView.dynamicType.\r\n    ...\r\n}\r\n\r\n```\r\n```\r\nMy cell class\r\npublic struct LabelCellModel {  \r\n  let labelValue: Variable<String>\r\n}\r\n\r\npublic class LabelCell: TableViewCell, ModelTransfer {\r\n  \r\n  @IBOutlet weak var label: UILabel!\r\n  \r\n  public func updateWithModel(model: LabelCellModel) {\r\n    \r\n    model.labelValue.asObservable()\r\n      .takeUntil(rx_reuse)\r\n      .subscribeNext({[weak self] labelText in self?.label.text = labelText })\r\n      .addDisposableTo(disposeBag)\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/DenHeadless/DTTableViewManager/issues/comments/199230125","html_url":"https://github.com/DenHeadless/DTTableViewManager/issues/34#issuecomment-199230125","issue_url":"https://api.github.com/repos/DenHeadless/DTTableViewManager/issues/34","id":199230125,"user":{"login":"DenHeadless","id":853604,"avatar_url":"https://avatars.githubusercontent.com/u/853604?v=3","gravatar_id":"","url":"https://api.github.com/users/DenHeadless","html_url":"https://github.com/DenHeadless","followers_url":"https://api.github.com/users/DenHeadless/followers","following_url":"https://api.github.com/users/DenHeadless/following{/other_user}","gists_url":"https://api.github.com/users/DenHeadless/gists{/gist_id}","starred_url":"https://api.github.com/users/DenHeadless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenHeadless/subscriptions","organizations_url":"https://api.github.com/users/DenHeadless/orgs","repos_url":"https://api.github.com/users/DenHeadless/repos","events_url":"https://api.github.com/users/DenHeadless/events{/privacy}","received_events_url":"https://api.github.com/users/DenHeadless/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T11:17:15Z","updated_at":"2016-03-21T11:17:15Z","body":"What version of DTTableViewManager are you using? In my projects and unit tests whenSelected seems to work fine."}}