X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/8eedf7e7e7afb78df8388ab7692118e6b9f3b466..f8c9fd4c9a853ca14ac1d1fb123e2e6200879bb4:/CyteKit/TableViewCell.mm diff --git a/CyteKit/TableViewCell.mm b/CyteKit/TableViewCell.mm index ce61ad51..827440bf 100644 --- a/CyteKit/TableViewCell.mm +++ b/CyteKit/TableViewCell.mm @@ -24,8 +24,11 @@ #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) { @@ -48,7 +51,10 @@ @end -@implementation CyteTableViewCell +@implementation CyteTableViewCell { + _H content_; + bool highlighted_; +} - (void) _updateHighlightColorsForView:(UIView *)view highlighted:(BOOL)highlighted { if (view == (UIView *) content_) @@ -64,4 +70,16 @@ [content_ setNeedsDisplay]; } +- (void) setContent:(CyteTableViewCellContentView *)content { + content_ = content; +} + +- (CyteTableViewCellContentView *) content { + return content_; +} + +- (bool) highlighted { + return highlighted_; +} + @end