Re: NSString comparisons
Re: NSString comparisons
- Subject: Re: NSString comparisons
- From: Art Isbell <email@hidden>
- Date: Tue, 13 Apr 2004 15:43:46 -1000
On Apr 13, 2004, at 3:18 PM, Randall Perry wrote:
Can anyone point me to examples of using NSString comparison methods?
API
doesn't give examples. Neither do the 2 WO books I have.
WO 5 doesn't use NSString; it uses the standard Java String class. So
you should refer to Java class documentation at
http://java.sun.com/j2se/1.4.2/docs/api/ (assuming you're using WO
5.2.3). compareTo(), compareToIgnoreCase(), equals(), and
equalsIgnoreCase() are commonly-used methods. But you shouldn't
generally compare any objects using Java's "==" operator which is
appropriate for Java's primitive types.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.