diff options
Diffstat (limited to 'CyteKit/TableViewCell.mm')
-rw-r--r-- | CyteKit/TableViewCell.mm | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/CyteKit/TableViewCell.mm b/CyteKit/TableViewCell.mm index ce61ad5..827440b 100644 --- a/CyteKit/TableViewCell.mm +++ b/CyteKit/TableViewCell.mm @@ -24,8 +24,11 @@ #include "CyteKit/TableViewCell.h" #include "iPhonePrivate.h" +#include <Menes/ObjectHandle.h> -@implementation CyteTableViewCellContentView +@implementation CyteTableViewCellContentView { + _transient id<CyteTableViewCellDelegate> delegate_; +} - (id) initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame]) != nil) { @@ -48,7 +51,10 @@ @end -@implementation CyteTableViewCell +@implementation CyteTableViewCell { + _H<CyteTableViewCellContentView, 1> 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 |