Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String Contains String



Thank you both for answering so quickly, i was expecting a nice simple method like all the other ones they offer ;) thanks for pointing me in the correct direction google helped finish the last bits


On 01/06/2007, at 12:41 AM, I. Savant wrote:

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
References: 
 >String Contains String (From: Andrew James <email@hidden>)
 >Re: String Contains String (From: "I. Savant" <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.