Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

if(NSOrderedAscending == result) can someone explain this

I read Apple's documentation and sometimes it feels like Apple's documentation is too complicated on purpose.

NSStringCompareOptions  compareOptions = NSDiacriticInsensitiveSearch;

if(NSOrderedAscending == result)

does it mean that the strings do not match?

like image 719
Cocoa Dev Avatar asked May 12 '11 14:05

Cocoa Dev


1 Answers

NSOrderedAscending means: The left operand is smaller than the right operand. NSOrderedDescending means the opposite: The left operand is greater than the right operand.

Equality is represented by NSOrderedSame: The two operands are equal.

like image 65
DarkDust Avatar answered Nov 15 '22 22:11

DarkDust