#include "CyteKit/ViewController.h"
#include "iPhonePrivate.h"
+#include <Menes/ObjectHandle.h>
@implementation UIViewController (Cydia)
return nil;
}
+- (UIViewController *) rootViewController {
+ UIViewController *base(self);
+ while ([base parentOrPresentingViewController] != nil)
+ base = [base parentOrPresentingViewController];
+ return base;
+}
+
+- (NSURL *) navigationURL {
+ return nil;
+}
+
@end
-@implementation CyteViewController
+@implementation CyteViewController {
+ _transient id delegate_;
+ BOOL loaded_;
+ _H<UIColor> color_;
+}
- (void) setDelegate:(id)delegate {
delegate_ = delegate;
[super unloadData];
}
-- (NSURL *) navigationURL {
- return nil;
-}
-
- (void) setPageColor:(UIColor *)color {
if (color == nil)
color = [UIColor groupTableViewBackgroundColor];
color_ = color;
}
+- (UIColor *) pageColor {
+ return color_;
+}
+
#include "InterfaceOrientation.h"
@end