![]() |
API
0.9.7
|
#import <CPWebView.h>
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 654 of file CPWebView.j.
|
implementation |
Checks to see if the webview has a history stack you can navigate back through.
Definition at line 638 of file CPWebView.j.
|
implementation |
Checks to see if the webview has a history stack you can navigate forward through.
Definition at line 649 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 664 of file CPWebView.j.
|
implementation |
Gets the computed style for an element.
DOMElement | - An Element. |
pseudoElement | - A pseudoElement. |
Definition at line 737 of file CPWebView.j.
|
implementation |
Returns the window object of the webview.
Definition at line 674 of file CPWebView.j.
|
implementation |
Definition at line 875 of file CPWebView.j.
|
implementation |
Definition at line 753 of file CPWebView.j.
|
implementation |
Returns the effective scroll mode of the receiver.
Valied values are: CPWebViewScrollAuto CPWebViewScrollAppKit CPWebViewScrollNative CPWebViewScrollNone
Definition at line 335 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 |
Provided by category CPWebView(CPCoding).
Definition at line 1041 of file CPWebView.j.
|
implementation |
Definition at line 885 of file CPWebView.j.
|
implementation |
Tells the webview to navigate to the previous page.
Definition at line 591 of file CPWebView.j.
|
implementation |
Same as -goBack but takes a sender as a param.
sender | - the sender of the action. |
Definition at line 813 of file CPWebView.j.
|
implementation |
Tells the receiver to go forward in page history.
Definition at line 614 of file CPWebView.j.
|
implementation |
Same as -goForward but takes a sender as a param.
sender | - the sender of the action. |
Definition at line 823 of file CPWebView.j.
|
implementation |
Initializes the web view from the data in a coder.
aCoder | the coder from which to read the data |
Provided by category CPWebView(CPCoding).
Definition at line 1011 of file CPWebView.j.
|
implementation |
Definition at line 137 of file CPWebView.j.
|
implementation |
Definition at line 127 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 555 of file CPWebView.j.
|
implementation |
Loads a string of HTML into the receiver.
CPString | - The string to load. |
Definition at line 416 of file CPWebView.j.
|
implementation |
Loads a string of HTML into the receiver.
Definition at line 427 of file CPWebView.j.
|
implementation |
Returns the URL of the main frame.
Definition at line 565 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 725 of file CPWebView.j.
|
implementation |
Definition at line 895 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 858 of file CPWebView.j.
|
implementation |
Reloads the webview.
sender | - the sender of the action. |
Definition at line 843 of file CPWebView.j.
|
implementation |
Definition at line 905 of file CPWebView.j.
|
implementation |
Definition at line 779 of file CPWebView.j.
|
implementation |
Definition at line 880 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 769 of file CPWebView.j.
|
implementation |
Definition at line 890 of file CPWebView.j.
|
implementation |
Definition at line 222 of file CPWebView.j.
|
implementation |
Sets the URL of the main frame.
CPString | - the url to set. |
Definition at line 575 of file CPWebView.j.
|
implementation |
Definition at line 900 of file CPWebView.j.
|
implementation |
Definition at line 910 of file CPWebView.j.
|
implementation |
Sets the scroll mode of the receiver.
Valid values are: CPWebViewScrollAuto CPWebViewScrollAppKit CPWebViewScrollNative CPWebViewScrollNone
CPWebViewScrollAuto
Definition at line 316 of file CPWebView.j.
|
implementation |
Definition at line 920 of file CPWebView.j.
|
implementation |
Stops loading the webview. (not yet implemented)
sender | - the sender of the action. |
Definition at line 833 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 713 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 803 of file CPWebView.j.
|
implementation |
Definition at line 915 of file CPWebView.j.
|
implementation |
Definition at line 228 of file CPWebView.j.
|
implementation |
Returns the root Object of the webview as a CPWebScriptObject.
Definition at line 691 of file CPWebView.j.