| Conforms to | |
| Framework | /System/Library/Frameworks/WebKit.framework |
| Availability | Available in Mac OS X v10.2 with Safari 1.0 and later.
Available in Mac OS X v10.2.7 and later.
|
| Companion guide | |
| Declared in | WebDocument.h |
This protocol is adopted by the document view of a WebFrameView. You can extend Web Kit to support additional MIME types by implementing your own document view and document representation classes to render data for specific MIME types. You register those classes using the WebFrame registerViewClass:representationClass:forMIMEType: method. Classes that adopt this protocol are expected to be subclasses of NSView.
Invoked when additional data has been received.
- (void)dataSourceUpdated:(WebDataSource *)dataSource
The parameter dataSource indicates the source of the new data.
WebDocument.hInvoked when the receiver should change its layout.
- (void)layout
This message is sent to the view as a hint to perform any calculations and update rendering information. For example, at a minimum, the receiver might set the frame rectangle. This method should not perform any drawing operations.
WebDocument.hInvoked when the data source for this document has been changed.
- (void)setDataSource:(WebDataSource *)dataSource
The parameter dataSource contains the new data source for this document.
WebDocument.hSets whether or not the receiver should change its layout.
- (void)setNeedsLayout:(BOOL)flag
If flag is YES then the receiver will update its layout. Views conforming to this protocol should implement the drawRect method to invoke layout if this flag is YES.
WebDocument.hInvoked when a web view's host window is set.
- (void)viewDidMoveToHostWindow
WebDocument.hInvoked when a web view’s host window is about to change.
- (void)viewWillMoveToHostWindow:(NSWindow *)hostWindow
The parameter hostWindow contains the new host window for the WebView.
WebDocument.h
Last updated: 2006-05-23