• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString comparisons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >NSString comparisons (From: Randall Perry <email@hidden>)

  • Prev by Date: Re: NSString comparisons
  • Next by Date: Re: NSString comparisons
  • Previous by thread: Re: NSString comparisons
  • Next by thread: Owns destination and other relationship constraints ...
  • Index(es):
    • Date
    • Thread