MonobjcMonobjc Documented Class Library
InitWithKeyAscending Method (keyPath, ascending)
NamespacesMonobjc.FoundationNSSortDescriptorInitWithKeyAscending(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 virtual Id InitWithKeyAscending(
	NSString keyPath,
	bool ascending
)
Public Overridable Function InitWithKeyAscending ( _
	keyPath As NSString, _
	ascending As Boolean _
) As Id
public:
virtual Id^ InitWithKeyAscending(
	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)