FindString
protoTXViewFinder:FindString(object, str, startOffset, options)
Searches for matching text in the data object returned by a call to the
*protoTXView:*Externalize
method.
DISCUSSION
- object
- A data object returned from the *
Externalize
method.
- str
- The string to find.
- startOffset
- The offset at which the search should start, expressed as a number of characters from the start of the data.
- options
- Must be
nil
.
- return value
- The offset of the matching string in the object, or
nil
if no match is found.
The
FindString
method searches in a word-processing data object for a sequence of characters that matches str. The search is not case sensitive. The search begins at startOffset from the beginning of the object and continues until a match is made or the end of the text is reached.The
FindString
returnsnil
.
- Note
- This method works the same as the *
protoTXView:FindString
method, except that theprotoTXViewFinder
version has an additional parameter: object.![]()
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help