19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
@throw [OFInvalidArgumentException exception];
int x, y;
@try {
x = _text.intValue;
} @catch (OFInvalidFormatException *e) {
x = 0;
}
@try {
y = otherItem.text.intValue;
} @catch (OFInvalidFormatException *e) {
y = 0;
}
if (x > y)
return OFOrderedAscending;
if (x < y)
return OFOrderedDescending;
|
>
>
>
|
>
>
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
@throw [OFInvalidArgumentException exception];
int x, y;
@try {
x = _text.intValue;
} @catch (OFInvalidFormatException *e) {
x = 0;
} @catch (OFOutOfRangeException *e) {
x = 0;
}
@
try {
y = otherItem.text.intValue;
} @catch (OFInvalidFormatException *e) {
y = 0;
} @catch (OFOutOfRangeException *e) {
y = 0;
}
if (x > y)
return OFOrderedAscending;
if (x < y)
return OFOrderedDescending;
|