CPWebView isLoading method.

This commit is contained in:
Alexander Ljungberg
2011-03-24 01:03:02 -04:00
parent 93fe320e22
commit 79e977b2d9
+13 -1
View File
@@ -37,7 +37,10 @@ CPWebViewProgressStartedNotification = "CPWebViewProgressStartedNotif
CPWebViewProgressFinishedNotification = "CPWebViewProgressFinishedNotification";
/*!
Automatically choose between AppKit (Cappuccino style) scrollbars and native scrollbars. In this mode AppKit scrollbars are always used except when the web view is loaded with a URL which does not appear to pass the same origin policy.
Automatically choose between AppKit (Cappuccino style) scrollbars and
native scrollbars. In this mode AppKit scrollbars are always used except
when the web view is loaded with a URL which does not appear to pass the
same origin policy.
*/
CPWebViewScrollAuto = 0;
/*!
@@ -522,6 +525,15 @@ CPWebViewAppKitScrollMaxPollCount = 3;
[_frameLoadDelegate webView:self didFinishLoadForFrame:nil]; // FIXME: give this a frame somehow?
}
/*!
Returns whether the web view is loading. Note: due to browser limitations
this value is not particularly reliable.
*/
- (BOOL)isLoading
{
return _isLoading;
}
/*!
Returns the URL of the main frame.