These are passed to initWithObjectSpecifier:comparisonOperator:testObject: to specify the comparison operator.
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public enum NSTestComparisonOperation
Public Enumeration NSTestComparisonOperation
public enum class NSTestComparisonOperation

Member | Description |
---|---|
NSEqualToComparison | Binary comparison operator that results in YES if the two objects are equal. Available in Mac OS X v10.0 and later. |
NSLessThanOrEqualToComparison | Binary comparison operator that results in YES if the value of the test object is equal to or less than the value of the other object. Available in Mac OS X v10.0 and later. |
NSLessThanComparison | Binary comparison operator that results in YES if the value of the test object is less than the value of the other object. Available in Mac OS X v10.0 and later. |
NSGreaterThanOrEqualToComparison | Binary comparison operator that results in YES if the value of the test object is greater than or equal to the value of the other object. Available in Mac OS X v10.0 and later. |
NSGreaterThanComparison | Binary comparison operator that results in YES if the value of the test object is greater than the value of the other object. Available in Mac OS X v10.0 and later. |
NSBeginsWithComparison | Binary containment operator that results in YES if the test object is a list or string that matches the beginning of the other object (which is also a list or string). Available in Mac OS X v10.0 and later. |
NSEndsWithComparison | Binary containment operator that results in YES if the test object is a list or string that matches the end of the other object (which is also a list or string). Available in Mac OS X v10.0 and later. |
NSContainsComparison | Binary containment operator that results in YES if the test object is a list or string that matches the other object (which is also a list or string) at any location. Available in Mac OS X v10.0 and later. |

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)