• 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
Search NSString for a word and get a boolean value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Search NSString for a word and get a boolean value


  • Subject: Search NSString for a word and get a boolean value
  • From: Moritz Siller <email@hidden>
  • Date: Fri, 11 Jul 2008 23:12:46 +0200

Hello!

I am an absolute newbie to Cocoa and I am trying to teach myself a little bit. I already have had a whole bunch of problems with my little applications I write, but have been able to solve them using the documentation or the Cocoa Builder Archive.
But now I have a problem I am not able to solve:
I have a string and I want to search it for the word "*** FLOP ***" and get a simple boolean value to know if the string contains this word.


I have tried with the NSScanner class` methods, but i am not even sure if they are made for that purposes.
Is there a simple method to do the job? Are the NSScanner methods the right way and I am just handling them wrong?


If you think this question is too stupid and i should solve it on my own please just ignore it ;-)

Greetings, Moritz.




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Search NSString for a word and get a boolean value
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Receive notifications about frontmost application change
  • Next by Date: Re: Search NSString for a word and get a boolean value
  • Previous by thread: Creating MetaPackages using PackageMaker 3 on 10.5
  • Next by thread: Re: Search NSString for a word and get a boolean value
  • Index(es):
    • Date
    • Thread