#import <CPWebView.h>
Additional Inherited Members | |
Class Methods inherited from CPView | |
(Class) | + animatorClass |
(CAAnimation) | + defaultAnimationForKey: |
(CPMenu) | + defaultMenu |
(CPString) | + defaultThemeClass |
(void) | + initialize |
(BOOL) | + isHighDPIDrawingEnabled |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
(void) | + setHighDPIDrawingEnabled: |
(CPDictionary) | + themeAttributes |
CPWebView allows you to display arbitrary HTML or embed a webpage inside your application.
It's important to note that the same origin policy applies to this view. That is, if the web page being displayed is not located in the same origin (protocol, domain, and port) as the application, you will have limited control over the view and no access to its contents. Furthermore, Cappuccino style scrollbars can't be used to scroll it.
Definition at line 2 of file CPWebView.h.
|
implementation |
Definition at line 655 of file CPWebView.j.
|
implementation |
Checks to see if the webview has a history stack you can navigate back through.
Definition at line 639 of file CPWebView.j.
|
implementation |
Checks to see if the webview has a history stack you can navigate forward through.
Definition at line 650 of file CPWebView.j.
|
implementation |
Closes the webview by unloading the webpage. The webview will no longer respond to load requests or delegate methods once this is called.
Definition at line 665 of file CPWebView.j.
|
implementation |
Gets the computed style for an element.
DOMElement | - An Element. |
pseudoElement | - A pseudoElement. |
Definition at line 738 of file CPWebView.j.
|
implementation |
Returns the window object of the webview.
Definition at line 675 of file CPWebView.j.
|
implementation |
Definition at line 876 of file CPWebView.j.
|
implementation |
Definition at line 754 of file CPWebView.j.
|
implementation |
Returns the effective scroll mode of the receiver.
Valied values are: CPWebViewScrollAuto CPWebViewScrollAppKit CPWebViewScrollNative CPWebViewScrollNone
Definition at line 336 of file CPWebView.j.
|
implementation |
Writes out the web view's instance information to a coder.
aCoder | the coder to which to write the data |
Reimplemented from CPView.
Provided by category CPWebView(CPCoding).
Definition at line 1041 of file CPWebView.j.
|
implementation |
Definition at line 886 of file CPWebView.j.
|
implementation |
Tells the webview to navigate to the previous page.
Definition at line 592 of file CPWebView.j.
|
implementation |
Same as -goBack but takes a sender as a param.
sender | - the sender of the action. |
Definition at line 814 of file CPWebView.j.
|
implementation |
Tells the receiver to go forward in page history.
Definition at line 615 of file CPWebView.j.
|
implementation |
Same as -goForward but takes a sender as a param.
sender | - the sender of the action. |
Definition at line 824 of file CPWebView.j.
|
implementation |
Initializes the web view from the data in a coder.
aCoder | the coder from which to read the data |
Reimplemented from CPView.
Provided by category CPWebView(CPCoding).
Definition at line 1011 of file CPWebView.j.
|
implementation |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPView.
Definition at line 138 of file CPWebView.j.
|
implementation |
Definition at line 128 of file CPWebView.j.
|
implementation |
Returns whether the web view is loading. Note: due to browser limitations this value is not particularly reliable.
Definition at line 556 of file CPWebView.j.
|
implementation |
Loads a string of HTML into the receiver.
CPString | - The string to load. |
Definition at line 417 of file CPWebView.j.
|
implementation |
Loads a string of HTML into the receiver.
Definition at line 428 of file CPWebView.j.
|
implementation |
Returns the URL of the main frame.
Definition at line 566 of file CPWebView.j.
|
implementation |
Evaluates a string of javascript in the webview and returns the result.
script | - A string of javascript. |
Definition at line 726 of file CPWebView.j.
|
implementation |
Definition at line 896 of file CPWebView.j.
|
implementation |
Tells the webview to print. If the webview is unable to print due to browser restrictions the user is alerted to print from the file menu.
sender | - the sender of the receiver. |
Definition at line 859 of file CPWebView.j.
|
implementation |
Reloads the webview.
sender | - the sender of the action. |
Definition at line 844 of file CPWebView.j.
|
implementation |
Definition at line 906 of file CPWebView.j.
|
implementation |
Sets the background color of the receiver.
aColor | the new color for the receiver's background |
Reimplemented from CPView.
Definition at line 780 of file CPWebView.j.
|
implementation |
Definition at line 881 of file CPWebView.j.
|
implementation |
Sets whether the webview draws its own background when the displayed contents do not.
If you are trying to create a transparent iframe:
A) call this method with NO A) call setBackground:[CPColor transparent] B) ensure the content does not draw a background, e.g. it has <body style="background-color: transparent;">
BOOL | - YES if the webview should draw its background, otherwise NO. |
Definition at line 770 of file CPWebView.j.
|
implementation |
Definition at line 891 of file CPWebView.j.
|
implementation |
Sets the receiver's frame size. If aSize
is the same as the frame's current dimensions, this method simply returns. The method posts a CPViewFrameDidChangeNotification to the default notification center if the receiver is configured to do so.
aSize | the new size for the frame |
Reimplemented from CPView.
Definition at line 223 of file CPWebView.j.
|
implementation |
Sets the URL of the main frame.
CPString | - the url to set. |
Definition at line 576 of file CPWebView.j.
|
implementation |
Definition at line 901 of file CPWebView.j.
|
implementation |
Definition at line 911 of file CPWebView.j.
|
implementation |
Sets the scroll mode of the receiver.
Valid values are: CPWebViewScrollAuto CPWebViewScrollAppKit CPWebViewScrollNative CPWebViewScrollNone
CPWebViewScrollAuto
Definition at line 317 of file CPWebView.j.
|
implementation |
Definition at line 921 of file CPWebView.j.
|
implementation |
Stops loading the webview. (not yet implemented)
sender | - the sender of the action. |
Definition at line 834 of file CPWebView.j.
Evaluates a javascript string in the webview and returns the result of that evaluation as a string.
script | - A string of javascript. |
Definition at line 714 of file CPWebView.j.
|
implementation |
Used with the target/action mechanism to automatically set the webviews mainFrameURL to the senders stringValue.
sender | - the sender of the action. Should respond to -stringValue. |
Definition at line 804 of file CPWebView.j.
|
implementation |
Definition at line 916 of file CPWebView.j.
|
implementation |
Called when the return value of isHiddenOrHasHiddenAncestor becomes NO, e.g. when this view stops being hidden due to a setHidden:NO message to itself or to one of its superviews.
Note: in the current implementation, viewDidUnhide may be called multiple times if additional superviews are unhidden, even if isHiddenOrHasHiddenAncestor was already NO.
Reimplemented from CPView.
Definition at line 229 of file CPWebView.j.
|
implementation |
Returns the root Object of the webview as a CPWebScriptObject.
Definition at line 692 of file CPWebView.j.