MonobjcMonobjc Documented Class Library
ObjectsWithOptionsPassingTest Method (opts, predicate)
NamespacesMonobjc.FoundationNSSetObjectsWithOptionsPassingTest(NSEnumerationOptions, Func<(Of <<'(Id, IntPtr, Boolean>)>>))

Returns a set of object that pass a test in a given Block, using the specified enumeration options.

Original signature is '- (NSSet *)objectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, BOOL *stop))predicate'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSSet ObjectsWithOptionsPassingTest(
	NSEnumerationOptions opts,
	Func<Id, IntPtr, bool> predicate
)
Public Overridable Function ObjectsWithOptionsPassingTest ( _
	opts As NSEnumerationOptions, _
	predicate As Func(Of Id, IntPtr, Boolean) _
) As NSSet
public:
virtual NSSet^ ObjectsWithOptionsPassingTest(
	NSEnumerationOptions opts, 
	Func<Id^, IntPtr, bool>^ predicate
)
Parameters
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, IntPtr, Boolean>)>)>)
The Block to apply to elements in the set.
Return Value
An NSSet containing objects that pass the test.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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