diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 06:53:52 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-08 01:50:04 -0800 |
commit | bf7c998c9b68756e925462bbfe1f9a699fc5055b (patch) | |
tree | 14f65a999df9ff282876450581034ce9a3fcd5d3 /CyteKit | |
parent | dfdb9ae0d3bc3689c3ca7b59e92f45c1b3ecb28f (diff) |
Automate set{Delegate,DataSource}:nil using _H<>.
Diffstat (limited to 'CyteKit')
-rw-r--r-- | CyteKit/TableViewCell.h | 4 | ||||
-rw-r--r-- | CyteKit/WebViewController.h | 6 | ||||
-rw-r--r-- | CyteKit/WebViewController.mm | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/CyteKit/TableViewCell.h b/CyteKit/TableViewCell.h index 27fd650..719b16b 100644 --- a/CyteKit/TableViewCell.h +++ b/CyteKit/TableViewCell.h @@ -44,7 +44,7 @@ #include <UIKit/UIKit.h> -#include <CydiaSubstrate/CydiaSubstrate.h> +#include <Menes/ObjectHandle.h> @protocol CyteTableViewCellDelegate - (void) drawContentRect:(CGRect)rect; @@ -57,7 +57,7 @@ @end @interface CYTableViewCell : UITableViewCell { - _H<CyteTableViewCellContentView> content_; + _H<CyteTableViewCellContentView, 1> content_; bool highlighted_; } diff --git a/CyteKit/WebViewController.h b/CyteKit/WebViewController.h index 0954b38..76bdd82 100644 --- a/CyteKit/WebViewController.h +++ b/CyteKit/WebViewController.h @@ -46,7 +46,7 @@ #include <UIKit/UIKit.h> #include <MessageUI/MessageUI.h> -#include <CydiaSubstrate/CydiaSubstrate.h> +#include <Menes/ObjectHandle.h> @class IndirectDelegate; @@ -62,11 +62,11 @@ MFMailComposeViewControllerDelegate, UIWebViewDelegate > { - _transient CyteWebView *webview_; + _H<CyteWebView, 1> webview_; _transient UIScrollView *scroller_; _H<UIActivityIndicatorView> indicator_; - _H<IndirectDelegate> indirect_; + _H<IndirectDelegate, 1> indirect_; _H<NSURLAuthenticationChallenge> challenge_; bool error_; diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 03f0b95..ca2f89a 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -25,6 +25,9 @@ extern NSString * const kCAFilterNearest; #include <WebKit/DOMHTMLBodyElement.h> #include <WebKit/DOMRGBColor.h> +#include <dlfcn.h> +#include <objc/runtime.h> + #define ForSaurik 0 #define DefaultTimeout_ 120.0 @@ -138,9 +141,6 @@ float CYScrollViewDecelerationRateNormal; NSLog(@"[CyteWebViewController dealloc]"); #endif - [webview_ setDelegate:nil]; - [indirect_ setDelegate:nil]; - if ([loading_ count] != 0) [delegate_ releaseNetworkActivityIndicator]; @@ -919,7 +919,7 @@ float CYScrollViewDecelerationRateNormal; } - (void) dispatchEvent:(NSString *)event { - [webview_ dispatchEvent:event]; + [(CyteWebView *) webview_ dispatchEvent:event]; } - (bool) hidesNavigationBar { |