MonobjcMonobjc Documented Class Library
LocalizedCompare Method (aString)

Returns an NSComparisonResult value that indicates the lexical ordering of the receiver and another given string using a localized comparison.

Original signature is '- (NSComparisonResult)localizedCompare:(NSString *)aString'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSComparisonResult LocalizedCompare(
	NSString aString
Public Overridable Function LocalizedCompare ( _
	aString As NSString _
) As NSComparisonResult
virtual NSComparisonResult LocalizedCompare(
	NSString^ aString
aString (NSString)
The string with which to compare the receiver.
Return Value
NSOrderedAscending the receiver precedes string in lexical ordering, NSOrderedSame the receiver and string are equivalent in lexical value, and NSOrderedDescending if the receiver follows string.
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)