X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/4c66fad9b489e2bda236a1a46c23c64cb774ea05..8511eb452e6188051960d2d96473a7810f85f5f2:/CyteKit/TableViewCell.mm diff --git a/CyteKit/TableViewCell.mm b/CyteKit/TableViewCell.mm index b4c4a4c1..827440bf 100644 --- a/CyteKit/TableViewCell.mm +++ b/CyteKit/TableViewCell.mm @@ -19,11 +19,16 @@ **/ /* }}} */ +#include "CyteKit/UCPlatform.h" + #include "CyteKit/TableViewCell.h" #include "iPhonePrivate.h" +#include -@implementation CyteTableViewCellContentView +@implementation CyteTableViewCellContentView { + _transient id delegate_; +} - (id) initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame]) != nil) { @@ -46,7 +51,10 @@ @end -@implementation CyteTableViewCell +@implementation CyteTableViewCell { + _H content_; + bool highlighted_; +} - (void) _updateHighlightColorsForView:(UIView *)view highlighted:(BOOL)highlighted { if (view == (UIView *) content_) @@ -62,4 +70,16 @@ [content_ setNeedsDisplay]; } +- (void) setContent:(CyteTableViewCellContentView *)content { + content_ = content; +} + +- (CyteTableViewCellContentView *) content { + return content_; +} + +- (bool) highlighted { + return highlighted_; +} + @end