{"issue":{"milestone":null,"title":"QBooleanElement.onSelected doesn't fire","created_at":"2011-12-29T22:18:46Z","user":{"login":"florinpatrascu","id":76138,"url":"https://api.github.com/users/florinpatrascu","gravatar_id":"fba31c697da043fef317f84788461b77","avatar_url":"https://secure.gravatar.com/avatar/fba31c697da043fef317f84788461b77?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"labels":[],"updated_at":"2011-12-29T22:22:22Z","state":"closed","id":2683261,"closed_at":"2011-12-29T22:22:22Z","html_url":"https://github.com/escoz/QuickDialog/issues/40","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Hi there,\r\n\r\nUnless I am doing something wrong, the QBooleanElement.onSelected doesn't fire when I click on the cell. Here is the gist of it:\r\n\r\n````objective-c\r\n  QBooleanElement *registerOrTransfer = [[QBooleanElement alloc] initWithTitle:@\"kitty\"  \r\n                                                                      BoolValue:NO];\r\n    registerOrTransfer.onImage = imgOn;\r\n    registerOrTransfer.offImage = imgOff;\r\n    registerOrTransfer.key = @\"registerOrTransfer\";\r\n    registerOrTransfer.onSelected = ^{\r\n        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@\"Hello\"\r\n                    message:@\"Kitty\"\r\n                   delegate:self\r\n                   cancelButtonTitle:@\"OK\"\r\n                   otherButtonTitles:nil];\r\n        \t\t[alert show];\r\n    };\r\n````\r\n\r\nAnd I can't see the simple 'Hello' dialog.\r\n\r\nIt does work though on a QButtonElement.\r\n\r\nPlease advise, thank you\r\n-florin\r\n\r\n","number":40,"url":"https://api.github.com/repos/escoz/QuickDialog/issues/40","comments":1,"assignee":null},"action":"closed"}