]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/TabBarController.mm
Avoid downloading translation files that will 404.
[cydia.git] / CyteKit / TabBarController.mm
index 27a8000f0deee6016e14d115ffaa998b553219f7..35a2bd0f6717dd8893e9fa94d3faecd19f48c227 100644 (file)
 #include "CyteKit/TabBarController.h"
 
 #include "iPhonePrivate.h"
+#include <Menes/ObjectHandle.h>
 
 @implementation UITabBarController (Cydia)
 
 @end
 
-@implementation CyteTabBarController
+@implementation CyteTabBarController {
+    _transient UIViewController *transient_;
+    _H<UIViewController> remembered_;
+}
+
+- (NSArray *) navigationURLCollection {
+    NSMutableArray *items([NSMutableArray array]);
+
+    // XXX: Should this deal with transient view controllers?
+    for (id navigation in [self viewControllers]) {
+        NSArray *stack = [navigation performSelector:@selector(navigationURLCollection)];
+        if (stack != nil)
+            [items addObject:stack];
+    }
+
+    return items;
+}
 
 - (void) didReceiveMemoryWarning {
     [super didReceiveMemoryWarning];