MonobjcMonobjc Documented Class Library
IndexesOfObjectsAtIndexesOptionsPassingTest Method (indexSet, opts, predicate)
NamespacesMonobjc.FoundationNSArrayIndexesOfObjectsAtIndexesOptionsPassingTest(NSIndexSet, NSEnumerationOptions, Func<(Of <<'(Id, NSUInteger, IntPtr>)>>))

Returns the indexes, from a given set of indexes, of objects in the array that pass a test in a given Block for a given set of enumeration options.

Original signature is '- (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)indexSet options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSIndexSet IndexesOfObjectsAtIndexesOptionsPassingTest(
	NSIndexSet indexSet,
	NSEnumerationOptions opts,
	Func<Id, NSUInteger, IntPtr> predicate
)
Public Overridable Function IndexesOfObjectsAtIndexesOptionsPassingTest ( _
	indexSet As NSIndexSet, _
	opts As NSEnumerationOptions, _
	predicate As Func(Of Id, NSUInteger, IntPtr) _
) As NSIndexSet
public:
virtual NSIndexSet^ IndexesOfObjectsAtIndexesOptionsPassingTest(
	NSIndexSet^ indexSet, 
	NSEnumerationOptions opts, 
	Func<Id^, NSUInteger, IntPtr>^ predicate
)
Parameters
indexSet (NSIndexSet)
The indexes of the objects over which to enumerate.
opts (NSEnumerationOptions)
A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).
predicate (Func<(Of <(<'Id, NSUInteger, IntPtr>)>)>)
The block to apply to elements in the array.
Return Value
The indexes whose corresponding values in the array pass the test specified by predicate. If no objects in the array pass the test, returns an empty index set.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)