pub unsafe trait WebDocumentSearching: NSObjectProtocol {
// Provided method
unsafe fn searchFor_direction_caseSensitive_wrap(
&self,
string: Option<&NSString>,
forward: bool,
case_flag: bool,
wrap_flag: bool,
) -> bool
where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature
WebDocument
only.Expand description
Optional protocol for searching document view of WebFrameView.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn searchFor_direction_caseSensitive_wrap(
&self,
string: Option<&NSString>,
forward: bool,
case_flag: bool,
wrap_flag: bool,
) -> bool
👎Deprecated
unsafe fn searchFor_direction_caseSensitive_wrap( &self, string: Option<&NSString>, forward: bool, case_flag: bool, wrap_flag: bool, ) -> bool
Searches a document view for a string and highlights the string if it is found.
Parameter string
: The string to search for.
Parameter forward
: YES to search forward, NO to seach backwards.
Parameter caseFlag
: YES to for case-sensitive search, NO for case-insensitive search.
Parameter wrapFlag
: YES to wrap around, NO to avoid wrapping.
Returns: YES if found, NO if not found.