diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2012-05-14 23:03:35 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2012-05-14 23:03:35 -0700 |
commit | 353dda5b4d75a4e33e59e05b3acdd41b1069b196 (patch) | |
tree | 18e2005fe09e2ad8e1b824c229592ca3905380f5 /CyteKit | |
parent | fac0ed79f59978f6cad1ce3e34407a608ce7f0e6 (diff) |
Add delegate getters to match setDelegate setters.
Diffstat (limited to 'CyteKit')
-rw-r--r-- | CyteKit/IndirectDelegate.h | 3 | ||||
-rw-r--r-- | CyteKit/TableViewCell.h | 1 | ||||
-rw-r--r-- | CyteKit/TableViewCell.mm | 4 | ||||
-rw-r--r-- | CyteKit/WebViewController.mm | 4 | ||||
-rw-r--r-- | CyteKit/WebViewTableViewCell.h | 1 | ||||
-rw-r--r-- | CyteKit/WebViewTableViewCell.mm | 4 |
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]; } |