CYViewController *page = nil;
int tag = 0;
- if ((page = [self pageForURL:starturl_ hasTag:&tag])) {
- [starturl_ release];
+ NSLog(@"open url: %@", url);
+
+ if ((page = [self pageForURL:url hasTag:&tag])) {
[self setPage:page];
tag_ = tag;
[tabbar_ setSelectedViewController:(tag_ == -1 ? nil : [[tabbar_ viewControllers] objectAtIndex:tag_])];
- (void) applicationOpenURL:(NSURL *)url {
[super applicationOpenURL:url];
+ NSLog(@"first: %@", url);
if (!loaded_) starturl_ = [url retain];
else [self openCydiaURL:url];
}
_setHomePage(self);
}
+ [starturl_ release];
+ starturl_ = nil;
+
[window_ setUserInteractionEnabled:YES];
// XXX: does this actually slow anything down?