| 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 |
WebDocumentText is an optional protocol for document view objects that display text. This protocol defines methods for accessing document content as strings, and methods for text selection. Classes that adopt this protocol should also adopt WebDocumentView and inherit from NSView.
Returns the receiver’s content, the entire document, as an attributed string.
- (NSAttributedString *)attributedString
WebDocument.hDeselects the receiver’s current selection.
- (void)deselectAll
WebDocument.hSelects all the text in the receiver.
- (void)selectAll
WebDocument.hReturns the receiver’s current selection as an attributed string.
- (NSAttributedString *)selectedAttributedString
WebDocument.hReturns the receiver’s current selection as a string.
- (NSString *)selectedString
WebDocument.hReturns the receiver’s content, the entire document, as a string.
- (NSString *)string
WebDocument.hReturns YES if the receiver supports text encoding, NO otherwise.
- (BOOL)supportsTextEncoding
WebDocument.h
Last updated: 2006-05-23