• 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: Maybe it's too late
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maybe it's too late


  • Subject: Re: Maybe it's too late
  • From: Miguel Arroz <email@hidden>
  • Date: Thu, 8 May 2008 13:00:08 +0100

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@hidden>:
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@hidden

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden

--
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Maybe it's too late
      • From: David Avendasora <email@hidden>
References: 
 >Maybe it's too late (From: Joshua Paul <email@hidden>)
 >Re: Maybe it's too late (From: "Daniele Corti" <email@hidden>)

  • Prev by Date: Re: NSSelector<T> - a curiosity
  • Next by Date: Re: Maybe it's too late
  • Previous by thread: Re: Maybe it's too late
  • Next by thread: Re: Maybe it's too late
  • Index(es):
    • Date
    • Thread