MonobjcMonobjc Documented Class Library
NSSortDescriptor Constructor (keyPath, ascending)
NamespacesMonobjc.FoundationNSSortDescriptorNSSortDescriptor(NSString, Boolean)

Returns an NSSortDescriptor object initialized with a given property key path and sort order, and with the default comparison selector.

Original signature is '- (id)initWithKey:(NSString *)keyPath ascending:(BOOL)ascending'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSSortDescriptor(
	NSString keyPath,
	bool ascending
)
Public Sub New ( _
	keyPath As NSString, _
	ascending As Boolean _
)
public:
NSSortDescriptor(
	NSString^ keyPath, 
	bool ascending
)
Parameters
keyPath (NSString)
The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).
ascending (Boolean)
YES if the receiver specifies sorting in ascending order, otherwise NO.
Return Value
An NSSortDescriptor object initialized with the property key path specified by keyPath, sort order specified by ascending, and the default comparison selector (compare:).
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.Foundation (Module: Monobjc.Foundation)