MonobjcMonobjc Documented Class Library
CompareObjectToObject Method (object1, object2)
NamespacesMonobjc.FoundationNSSortDescriptorCompareObjectToObject(Id, Id)

Returns an NSComparisonResult value that indicates the ordering of two given objects.

Original signature is '- (NSComparisonResult)compareObject:(id)object1 toObject:(id)object2'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSComparisonResult CompareObjectToObject(
	Id object1,
	Id object2
)
Public Overridable Function CompareObjectToObject ( _
	object1 As Id, _
	object2 As Id _
) As NSComparisonResult
public:
virtual NSComparisonResult CompareObjectToObject(
	Id^ object1, 
	Id^ object2
)
Parameters
object1 (Id)
The object to compare with object2. This object must have a property accessible using the key-path specified by key.
object2 (Id)
The object to compare with object1. This object must have a property accessible using the key-path specified by key.
Return Value
NSOrderedAscending if object1 is less than object2, NSOrderedDescending if object1 is greater than object2, or NSOrderedSame if object1 is equal to object2.
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)