MonobjcMonobjc Documented Class Library
SearchForItemsWithSearchStringResultLimitMatchedItemHandler Method (searchString, resultLimit, handleMatchedItems)
NamespacesMonobjc.AppKitINSUserInterfaceItemSearchingSearchForItemsWithSearchStringResultLimitMatchedItemHandler(NSString, NSInteger, Action<(Of <<'(NSArray>)>>))

Search for the specified items, with the result limit. (required)

Original signature is '- (void)searchForItemsWithSearchString:(NSString *)searchString resultLimit:(NSInteger)resultLimit matchedItemHandler:(void (^)(NSArray *items))handleMatchedItems'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
void SearchForItemsWithSearchStringResultLimitMatchedItemHandler(
	NSString searchString,
	NSInteger resultLimit,
	Action<NSArray> handleMatchedItems
Sub SearchForItemsWithSearchStringResultLimitMatchedItemHandler ( _
	searchString As NSString, _
	resultLimit As NSInteger, _
	handleMatchedItems As Action(Of NSArray) _
void SearchForItemsWithSearchStringResultLimitMatchedItemHandler(
	NSString^ searchString, 
	NSInteger resultLimit, 
	Action<NSArray^>^ handleMatchedItems
searchString (NSString)
The string to search for.
resultLimit (NSInteger)
The maximum number of results that Spotlight for Help will process. Any results returned beyond this limit will be ignored, but for performance reasons it is better to not exceed it.
handleMatchedItems (Action<(Of <(<'NSArray>)>)>)
The Block used to add results to the search.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)