Instance Method

searchFor:direction:caseSensitive:wrap:

Searches a document view for a string and highlights it if it is found.

Declaration

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

Parameters

string

The search string.

forward

If YES the direction of the search is forward; if NO, the direction is backward.

caseFlag

If YES if the search is case sensitive; otherwise, it is not.

wrapFlag

If YES if the search wraps; otherwise, it does not.

Return Value

YES if the search is successful; otherwise, NO.

Discussion

The search for string begins from the current selection and continues in the direction specified by forward. The search continues across all frames.

See Also