Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

WebDocumentSearching Protocol Reference

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

Overview

WebDocumentSearching is an optional protocol for document view objects that support searching. Classes that adopt this protocol should also adopt WebDocumentView and inherit from NSView.

Tasks

Searching a Document

Instance Methods

searchFor:direction:caseSensitive:wrap:

Searches for a string in a given direction from the current position.

- (BOOL)searchFor:(NSString *)string direction:(BOOL)directionFlag caseSensitive:(BOOL)caseFlag wrap:(BOOL)wrapFlag

Discussion

This method returns YES if the receiver contains string in the specified direction, NO otherwise. The receiver should select the string if it is found. If directionFlag is YES, the search is in the forward direction from the current location, otherwise the search is in the backward direction. If caseFlag is YES then the search is case sensitive, otherwise it is not. If wrapFlag is YES then the search will continue from the end of the document to the current location, otherwise it stops at the end of the document.

Availability
Declared In
WebDocument.h

Next Page > Hide TOC


Last updated: 2006-05-23




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice