MonobjcMonobjc Documented Class Library
SortSubviewsUsingFunctionContext Method (compare, context)
NamespacesMonobjc.AppKitNSViewSortSubviewsUsingFunctionContext(IdComparator, IntPtr)

Orders the receiver's immediate subviews using the specified comparator function.

Original signature is '- (void)sortSubviewsUsingFunction:(NSComparisonResult (*)(id, id, void *))compare context:(void *)context'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SortSubviewsUsingFunctionContext(
	IdComparator compare,
	IntPtr context
Public Overridable Sub SortSubviewsUsingFunctionContext ( _
	compare As IdComparator, _
	context As IntPtr _
virtual void SortSubviewsUsingFunctionContext(
	IdComparator^ compare, 
	IntPtr context
compare (IdComparator)
A pointer to the comparator function. This function must take as arguments two subviews to be ordered and contextual data (supplied in context which may be arbitrary data used to help in the comparison. The comparator function should return NSOrderedAscending if the first subview should be ordered lower, NSOrderedDescending if the second subview should be ordered lower, and NSOrderedSame if their ordering isn’t important.
context (IntPtr)
Arbitrary data that might help the comparator function compare in its decisions.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

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