summaryrefslogtreecommitdiff
path: root/CyteKit/TableViewCell.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-02-15 02:05:04 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2017-02-15 02:05:04 -0800
commitf8c9fd4c9a853ca14ac1d1fb123e2e6200879bb4 (patch)
tree2d38ef9bd91a6492206b330c38ec87b7b453cc7b /CyteKit/TableViewCell.mm
parent8eedf7e7e7afb78df8388ab7692118e6b9f3b466 (diff)
Move private ivars in CyteKit to @implementations.
Diffstat (limited to 'CyteKit/TableViewCell.mm')
-rw-r--r--CyteKit/TableViewCell.mm22
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