MonobjcMonobjc Documented Class Library
KeysSortedByValueWithOptionsUsingComparator Method (opts, cmptr)
NamespacesMonobjc.FoundationNSDictionaryKeysSortedByValueWithOptionsUsingComparator(NSSortOptions, Func<(Of <<'(Id, Id, NSComparisonResult>)>>))

Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block and a specified set of options.

Original signature is '- (NSArray *)keysSortedByValueWithOptions:(NSSortOptions)opts usingComparator:(NSComparator)cmptr'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSArray KeysSortedByValueWithOptionsUsingComparator(
	NSSortOptions opts,
	Func<Id, Id, NSComparisonResult> cmptr
)
Public Overridable Function KeysSortedByValueWithOptionsUsingComparator ( _
	opts As NSSortOptions, _
	cmptr As Func(Of Id, Id, NSComparisonResult) _
) As NSArray
public:
virtual NSArray^ KeysSortedByValueWithOptionsUsingComparator(
	NSSortOptions opts, 
	Func<Id^, Id^, NSComparisonResult>^ cmptr
)
Parameters
opts (NSSortOptions)
A bitmask of sort options.
cmptr (Func<(Of <(<'Id, Id, NSComparisonResult>)>)>)
A comparator block.
Return Value
An array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using cmptr with the options given in opts.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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