- (void) customButtonClicked;
- (void) applyRightButton;
-- (UIBarButtonItem *) customButton;
- (UIBarButtonItem *) rightButton;
- (void) applyLeftButton;
- (UIBarButtonItem *) customButton {
if (custom_ == nil)
- return nil;
+ return [self rightButton];
else if ((/*clang:*/id) custom_ == [NSNull null])
- return (UIBarButtonItem *) [NSNull null];
+ return nil;
return [[[UIBarButtonItem alloc]
initWithTitle:static_cast<NSString *>(custom_.operator NSObject *())
[self applyLoadingTitle];
} else {
[indicator_ stopAnimating];
-
- UIBarButtonItem *button([self customButton]);
- if (button == nil)
- button = [self rightButton];
- else if (button == (UIBarButtonItem *) [NSNull null])
- button = nil;
-
- [[self navigationItem] setRightBarButtonItem:button animated:YES];
+ [[self navigationItem] setRightBarButtonItem:[self customButton] animated:YES];
}
}
initWithTitle:(kCFCoreFoundationVersionNumber >= 800 ? @" " : @" ")
style:UIBarButtonItemStylePlain
target:self
- action:@selector(reloadButtonClicked)
+ action:@selector(customButtonClicked)
] autorelease];
UIActivityIndicatorViewStyle style;
#if !AlwaysReload
- (void) _customButtonClicked {
+ if (commercial_ && [package_ uninstalled])
+ return [self reloadURLWithCache:NO];
+
size_t count(buttons_.size());
if (count == 0)
return;
}
}
-- (void) reloadButtonClicked {
- if (commercial_ && function_ == nil && [package_ uninstalled])
- return;
- [self customButtonClicked];
-}
-
- (void) applyLoadingTitle {
// Don't show "Loading" as the title. Ever.
}