Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 3 - Word Processing Views / Word Processing View Reference
Protos / protoTXView


FindString

protoTXView:FindString(str, startOffset, options)

Searches for matching text in a word-processing view.

str
The string to be searched.

startOffset
The offset at which the search should start.

options
Must be nil. Currently the search is not case sensitive.

return value
The offset of the matching string in the view. If no match is found, FindString returns nil.

DISCUSSION

The FindString method searches in a word-processing view for a sequence of characters that matches str. The search begins at startOffset from the beginning of the view and continues until a match is made or the end of the text is reached.

Note that FindString does not offer wrap-around searching of the text in your view.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help