summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/IndirectDelegate.h3
-rw-r--r--CyteKit/TableViewCell.h1
-rw-r--r--CyteKit/TableViewCell.mm4
-rw-r--r--CyteKit/WebViewController.mm4
-rw-r--r--CyteKit/WebViewTableViewCell.h1
-rw-r--r--CyteKit/WebViewTableViewCell.mm4
6 files changed, 17 insertions, 0 deletions
diff --git a/CyteKit/IndirectDelegate.h b/CyteKit/IndirectDelegate.h
index 386e462..e1c0f25 100644
--- a/CyteKit/IndirectDelegate.h
+++ b/CyteKit/IndirectDelegate.h
@@ -44,8 +44,11 @@
_transient volatile id delegate_;
}
+- (id) delegate;
- (void) setDelegate:(id)delegate;
+
- (id) initWithDelegate:(id)delegate;
+
@end
#endif//CyteKit_IndirectDelegate_H
diff --git a/CyteKit/TableViewCell.h b/CyteKit/TableViewCell.h
index d6ac412..2b391eb 100644
--- a/CyteKit/TableViewCell.h
+++ b/CyteKit/TableViewCell.h
@@ -54,6 +54,7 @@
_transient id<CyteTableViewCellDelegate> delegate_;
}
+- (id) delegate;
- (void) setDelegate:(id<CyteTableViewCellDelegate>)delegate;
@end
diff --git a/CyteKit/TableViewCell.mm b/CyteKit/TableViewCell.mm
index fd86848..dd737e2 100644
--- a/CyteKit/TableViewCell.mm
+++ b/CyteKit/TableViewCell.mm
@@ -49,6 +49,10 @@
} return self;
}
+- (id) delegate {
+ return delegate_;
+}
+
- (void) setDelegate:(id<CyteTableViewCellDelegate>)delegate {
delegate_ = delegate;
}
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index cfe01f7..5d15213 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -59,6 +59,10 @@ float CYScrollViewDecelerationRateNormal;
/* Indirect Delegate {{{ */
@implementation IndirectDelegate
+- (id) delegate {
+ return delegate_;
+}
+
- (void) setDelegate:(id)delegate {
delegate_ = delegate;
}
diff --git a/CyteKit/WebViewTableViewCell.h b/CyteKit/WebViewTableViewCell.h
index 8a15dbb..b3ee82d 100644
--- a/CyteKit/WebViewTableViewCell.h
+++ b/CyteKit/WebViewTableViewCell.h
@@ -55,6 +55,7 @@
+ (CyteWebViewTableViewCell *) cellWithRequest:(NSURLRequest *)request;
- (id) initWithRequest:(NSURLRequest *)request;
+- (id) delegate;
- (void) setDelegate:(id)delegate;
@end
diff --git a/CyteKit/WebViewTableViewCell.mm b/CyteKit/WebViewTableViewCell.mm
index 164fbf5..6c015bf 100644
--- a/CyteKit/WebViewTableViewCell.mm
+++ b/CyteKit/WebViewTableViewCell.mm
@@ -87,6 +87,10 @@
} return self;
}
+- (id) delegate {
+ return [webview_ delegate];
+}
+
- (void) setDelegate:(id)delegate {
[webview_ setDelegate:delegate];
}