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.
|C#||Visual Basic||Visual C++|
- 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.
Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)