Re: String Contains String
- Subject: Re: String Contains String
- From: "I. Savant" <email@hidden>
- Date: Thu, 31 May 2007 11:11:12 -0400
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=H7R7IALRHIN72FP3eD/+ZA/MzKV79K28UuDm6cNMH2HafPXYSRbrPJ85uuRCyNJEq9N8Di8SeuLmj9Rs+pS8bZlrUQ2ZLZ3pErgqs26Fb9Tn9XulMMn8wi17EEi3bH9+1mJKI5cpYN1Zq/af9etDKWh3R9xEy8IaGAFT9mhzkmA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fcMNDGRTfkLfTQ6TgZl/J/Zm1Z6Vc746gZoas3KfSYkCKG2XBHTe01OaQZAqbiv5iYaMRccpiH8iUqYBCOPAeUVmTw7YC48BL76vGaerhuDipK28zKIFz/WE6AWz+NbdCgxTh5ES/k1V/qfL+dWrI7CV/IzKJn1Z9gtJM6dxtt0=
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.