Hi!

Yap. containsObject compares objects using equals(), so it should work for Strings. If you are not finding the string with this, it's because it's not on the array. :) Maybe you need to trim() some white spaces?

  Yours

Miguel Arroz



On 2008/05/08, at 09:23, Daniele Corti wrote:



2008/5/8 Joshua Paul <[EMAIL PROTECTED]>:
I'm blurry-eyed, but it seems that trying to determine if an array of strings contains a certain string is harder than it should be. Am I overlooking something? If not, how should one compare to arrays of strings?

NSArray? if so, you have array.containsObject(Object); that says if object are the same. It works for me with strings (WO5.3).

If are two arrays create two NSSets and use the operations intersect, subtract and union.



--
Josh Paul
[EMAIL PROTECTED]

twitter: joshpaul
linkedin: joshpaul


NOTICE: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com

This email sent to [EMAIL PROTECTED]

Miguel Arroz
http://www.terminalapp.net
http://www.ipragma.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to