• 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 Variable Comparision
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString Variable Comparision


  • Subject: Re: NSString Variable Comparision
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 9 Jul 2003 13:17:19 -0500

On Wednesday, July 9, 2003, at 12:04 PM, Vibhu Mishra wrote:

Greetings again,
Can I compare two NSString Variables, if so how do I do it?
I believe for two integer, float etc variables, we use
if (int a == int b){
//
}
What do I do for two NSString variables.

You'll want to use isEqualToString:. Most (all?) of the Cocoa container objects implement some variation on the isEqual***: theme.

HTH,
Glen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSString Variable Comparision (From: Vibhu Mishra <email@hidden>)

  • Prev by Date: RE: NSString Variable Comparision
  • Next by Date: Re: NSString Variable Comparision
  • Previous by thread: RE: NSString Variable Comparision
  • Next by thread: Re: NSString Variable Comparision
  • Index(es):
    • Date
    • Thread