Objective-C compareTo:
I have a problem which I haven't encountered before.
Is there a standard mechanism for comparing two objects in Objective-C ? I
know the isEqual method, but I do not look for exact equality but rather
less than / more than / equal kind of comparison. In Java we have
compareTo: that does it, is there anything like that in Obj-C ?
No comments:
Post a Comment