summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-12-28 22:05:59 -0800
committerGrant Paul <chpwn@chpwn.com>2010-12-28 22:05:59 -0800
commitdf30fbeeffdde520154ea445b7ac9ff2c99ce198 (patch)
tree6ca088b8a53ff9487a203870806612405e0620bb /UICaboodle
parent9daa0bdcb0426353ff2ac7c25af05aae36fc434f (diff)
Allow BrowserView subclasses to be notified of changes in loading state.
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/BrowserView.mm17
1 files changed, 13 insertions, 4 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index f1053f8..168cff1 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -904,24 +904,33 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
}
}
+- (void) didStartLoading {
+ // Overridden in subclasses.
+}
+
- (void) _didStartLoading {
[self applyRightButton];
if ([loading_ count] != 1)
return;
+
[delegate_ retainNetworkActivityIndicator];
+ [self didStartLoading];
+}
+
+- (void) didFinishLoading {
+ // Overridden in subclasses.
}
- (void) _didFinishLoading {
if ([loading_ count] != 0)
return;
- [delegate_ releaseNetworkActivityIndicator];
[self applyRightButton];
+ [[self navigationItem] setTitle:title_];
- // XXX: wtf?
- if (![self isLoading])
- [[self navigationItem] setTitle:title_];
+ [delegate_ releaseNetworkActivityIndicator];
+ [self didFinishLoading];
}
- (bool) isLoading {