• 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: Jon Trainer <email@hidden>
  • Date: Sun, 3 Jun 2007 08:33:17 -0400

You can also try the -containsString: category method from  here:

http://www.cocoadev.com/index.pl? FindingIfOneStringContainsAnotherString



On May 31, 2007, at 4:59 PM, Andrew Farmer wrote:

On 31 May 07, at 08:02, Andrew James 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 contains hibernatefile

Unless of course there is a simple way to read whats in PMSet, i know it is possible to use grep in the NSTask however i also want to check for a second setting which would double the code etc.

There's definitely some API that's being used by pmset. I believe it's within either IOKit or SystemConfiguration. I don't know the details, but at least you know where to start looking now...
_______________________________________________


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:
40gmail.com


This email sent to email@hidden

_______________________________________________

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


  • Prev by Date: Re: Enabling NSButton
  • Next by Date: Re: Problem applying texture to rectangle.
  • Previous by thread: Re: Creating dynamic views
  • Next by thread: Blocking a method's return until an "async' forked thread has finished it's work.
  • Index(es):
    • Date
    • Thread