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 Basic | Visual 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 )
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)