Re: NSString Variable Comparision
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.