• 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: String Contains String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String Contains String


  • Subject: Re: String Contains String
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 31 May 2007 11:11:12 -0400

On 5/31/07, Andrew James <email@hidden> wrote:
Is there a way to check if a string contains a string? what i am
attempting to do is get the results of pmset -g and see if it

It's not immediately obvious, but you want NSString's -rangeOfString... methods. Check if the returned returnedRange.location != NSNotFound.

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: String Contains String
      • From: Andrew James <email@hidden>
References: 
 >String Contains String (From: Andrew James <email@hidden>)

  • Prev by Date: Re: An NSCell with Radio Buttons. Easy?
  • Next by Date: Re: Jumpy unsynchronized movement with NSViewAnimation
  • Previous by thread: Re: String Contains String
  • Next by thread: Re: String Contains String
  • Index(es):
    • Date
    • Thread